for(var pane in this.pane2button){ this.onRemoveChild(pane); } dojo.forEach(this._subscriptions, dojo.unsubscribe); this.inherited(arguments);