Bug 979536 - Part 3: Fix reopening storage tool. r=mratcliffe

This commit is contained in:
J. Ryan Stinnett 2014-09-24 08:48:00 +02:00
parent f385f4c77a
commit 194355ef5b
2 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,8 @@ StoragePanel.prototype = {
destroy: function() { destroy: function() {
if (!this._destroyed) { if (!this._destroyed) {
this.UI.destroy(); this.UI.destroy();
// Destroy front to ensure packet handler is removed from client
this._front.destroy();
this._destroyed = true; this._destroyed = true;
this._target.off("close", this.destroy); this._target.off("close", this.destroy);

View File

@ -96,7 +96,7 @@ StorageUI.prototype = {
destroy: function() { destroy: function() {
this.front.off("stores-update", this.onUpdate); this.front.off("stores-update", this.onUpdate);
this._panelDoc.removeEventListener("keypress", this.handleKeypress) this._panelDoc.removeEventListener("keypress", this.handleKeypress);
}, },
/** /**