1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- if(!dojo._hasResource["dojox.drawing.plugins._Plugin"]){
- dojo._hasResource["dojox.drawing.plugins._Plugin"] = true;
- dojo.provide("dojox.drawing.plugins._Plugin");
- dojox.drawing.plugins._Plugin = dojox.drawing.util.oo.declare(
-
-
-
-
-
- function(options){
- this._cons = [];
- dojo.mixin(this, options);
- if(this.button && this.onClick){
- this.connect(this.button, "onClick", this, "onClick")
- }
- },
- {
- util:null,
- keys:null,
- mouse:null,
- drawing:null,
- stencils:null,
- anchors:null,
- canvas:null,
- node:null,
- button:null,
- type:"dojox.drawing.plugins._Plugin",
- connect: function(){
- this._cons.push(dojo.connect.apply(dojo, arguments));
- },
- disconnect: function(/*handle | Array*/handles){
-
-
-
- if(!handles){ return };
- if(!dojo.isArray(handles)){ handles=[handles]; }
- dojo.forEach(handles, dojo.disconnect, dojo);
- }
- }
- );
- }
|