_Plugin.js 876 B

12345678
  1. /*
  2. Copyright (c) 2004-2009, 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. 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(_1){this._cons=[];dojo.mixin(this,_1);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(_2){if(!_2){return;}if(!dojo.isArray(_2)){_2=[_2];}dojo.forEach(_2,dojo.disconnect,dojo);}});}