this.inherited(arguments); this.shapeGroup=new dojox.sketch.ButtonGroup; this.connect(this.figure,'onLoad','reset'); if(!this.plugins){ this.plugins=['Slider','Lead','SingleArrow','DoubleArrow','Underline','Preexisting']; } this._plugins=[]; dojo.forEach(this.plugins,function(obj){ var name=dojo.isString(obj)?obj:obj.name; var p=new dojox.sketch.tools[name](obj.args||{}); this._plugins.push(p); p.setFigure(this.figure); p.setToolbar(this); if(!this._defaultTool && p.button){ this._defaultTool=p; } },this);