if(this.children.length){ this._setSrcIndex(this.children[0].domNode); } dojo.forEach(this.children, "item.destroy();"); this.children = [];