dojo.forEach(this._groups[this.name], function(widget, i, arr){ if(widget === this){ arr.splice(i, 1); return; } }, this);