diff options
| author | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
|---|---|---|
| committer | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
| commit | b62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch) | |
| tree | 86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /js/dojo-1.7.2/dojox/drawing/plugins/_Plugin.js | |
Diffstat (limited to 'js/dojo-1.7.2/dojox/drawing/plugins/_Plugin.js')
| -rw-r--r-- | js/dojo-1.7.2/dojox/drawing/plugins/_Plugin.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/js/dojo-1.7.2/dojox/drawing/plugins/_Plugin.js b/js/dojo-1.7.2/dojox/drawing/plugins/_Plugin.js new file mode 100644 index 0000000..44ebd51 --- /dev/null +++ b/js/dojo-1.7.2/dojox/drawing/plugins/_Plugin.js @@ -0,0 +1,43 @@ +//>>built +// wrapped by build app +define("dojox/drawing/plugins/_Plugin", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){ +dojo.provide("dojox.drawing.plugins._Plugin"); + +dojox.drawing.plugins._Plugin = dojox.drawing.util.oo.declare( + // summary: + // Base class for plugins. + // description: + // When creating a plugin, use this class as the + // base to ensure full functionality. + 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,//gfx button + type:"dojox.drawing.plugins._Plugin", + connect: function(){ + this._cons.push(dojo.connect.apply(dojo, arguments)); + }, + disconnect: function(/*handle | Array*/handles){ + // summary: + // Removes connections based on passed + // handles arguments + if(!handles){ return }; + if(!dojo.isArray(handles)){ handles=[handles]; } + dojo.forEach(handles, dojo.disconnect, dojo); + } + } +); +}); |
