root / trunk / web / dojo / dojox / drawing / plugins / _Plugin.js
History | View | Annotate | Download (897 Bytes)
1 | 9 | andrej.cim | /*
|
---|---|---|---|
2 | Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||
3 | Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||
4 | see: http://dojotoolkit.org/license for details
|
||
5 | */
|
||
6 | |||
7 | |||
8 | if(!dojo._hasResource["dojox.drawing.plugins._Plugin"]){ |
||
9 | dojo._hasResource["dojox.drawing.plugins._Plugin"]=true; |
||
10 | dojo.provide("dojox.drawing.plugins._Plugin");
|
||
11 | dojox.drawing.plugins._Plugin=dojox.drawing.util.oo.declare(function(_1){
|
||
12 | this._cons=[];
|
||
13 | dojo.mixin(this,_1);
|
||
14 | if(this.button&&this.onClick){ |
||
15 | this.connect(this.button,"onClick",this,"onClick"); |
||
16 | } |
||
17 | },{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(){ |
||
18 | this._cons.push(dojo.connect.apply(dojo,arguments)); |
||
19 | },disconnect:function(_2){ |
||
20 | if(!_2){
|
||
21 | return;
|
||
22 | } |
||
23 | if(!dojo.isArray(_2)){
|
||
24 | _2=[_2]; |
||
25 | } |
||
26 | dojo.forEach(_2,dojo.disconnect,dojo); |
||
27 | }}); |
||
28 | } |