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