removes all shapes from a group/surface
var r = this.rawNode; while(r.lastChild){ r.removeChild(r.lastChild); } var d = this.defNode; if(d){ while(d.lastChild){ d.removeChild(d.lastChild); } r.appendChild(d); } //return this.inherited(arguments); // self return dojox.gfx.shape.Container.clear.apply(this, arguments);