sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
977 B

define(["dojo", "../util/oo"],
function(dojo, oo){
//dojox.drawing.plugins._Plugin =
return oo.declare(
function(options){
this._cons = [];
dojo.mixin(this, options);
if(this.button && this.onClick){
this.connect(this.button, "onClick", this, "onClick")
}
},
{
// summary:
// Base class for plugins.
// description:
// When creating a plugin, use this class as the
// base to ensure full functionality.
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);
}
}
);
});