Debian Codegraph @

dojox/drawing/plugins/_Plugin.js

raw symbols SCIP
1 define(["dojo", "../util/oo"],
2 function(dojo, oo){
3
4 //dojox.drawing.plugins._Plugin =
5 return oo.declare(
6 function(options){
7 this._cons = [];
8 dojo.mixin(this, options);
9 if(this.button && this.onClick){
10 this.connect(this.button, "onClick", this, "onClick")
11 }
12 },
13 {
14 // summary:
15 // Base class for plugins.
16 // description:
17 // When creating a plugin, use this class as the
18 // base to ensure full functionality.
19
20 util:null,
21 keys:null,
22 mouse:null,
23 drawing:null,
24 stencils:null,
25 anchors:null,
26 canvas:null,
27 node:null,
28 button:null,//gfx button
29 type:"dojox.drawing.plugins._Plugin",
30 connect: function(){
31 this._cons.push(dojo.connect.apply(dojo, arguments));
32 },
33 disconnect: function(/*Handle|Array*/ handles){
34 // summary:
35 // Removes connections based on passed
36 // handles arguments
37 if(!handles){ return };
38 if(!dojo.isArray(handles)){ handles=[handles]; }
39 dojo.forEach(handles, dojo.disconnect, dojo);
40 }
41 }
42 );
43 });