Skip to content

Instantly share code, notes, and snippets.

@makyo
Created May 28, 2014 21:33
Show Gist options
  • Save makyo/ab415ea871490c001b59 to your computer and use it in GitHub Desktop.
Save makyo/ab415ea871490c001b59 to your computer and use it in GitHub Desktop.
diff --git a/app/subapps/browser/browser.js b/app/subapps/browser/browser.js
index 9ab70d3..080b6da 100644
--- a/app/subapps/browser/browser.js
+++ b/app/subapps/browser/browser.js
@@ -546,7 +546,9 @@ YUI.add('subapp-browser', function(Y) {
this._charmbrowser.destroy();
this._charmbrowser = null;
}
- if (this._sidebar.search) { this._sidebar.hideSearch(); }
+ if (this._sidebar.search) {
+ this._sidebar.hideSearch();
+ }
if (this._details) {
this._details.destroy({ remove: true });
var detailsNode = Y.one('.bws-view-data');
@@ -558,7 +560,12 @@ YUI.add('subapp-browser', function(Y) {
detailsNode.empty();
}
}
- if (this._activeInspector) {this._activeInspector.destroy(); }
+ if (this._activeInspector) {
+ this._activeInspector.after('destroy', function() {
+ this.get('container').remove(true);
+ });
+ this._activeInspector.destroy();
+ }
},
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment