Permalink
Browse files

Bug 720641 (gtgcli): fix deletes which happened at wrong time

  • Loading branch information...
1 parent 84f7d75 commit 4147aea0bf633e3d8731320f3f983f0f3bc7536e @joewalker committed Apr 12, 2012
Showing with 6 additions and 7 deletions.
  1. +6 −7 lib/gcli/ui/focus.js
View
@@ -109,14 +109,7 @@ FocusManager.prototype.destroy = function() {
eagerHelper.onChange.remove(this._eagerHelperChanged, this);
this._document.removeEventListener('focus', this._focused, true);
- delete this._focused;
- delete this._document;
- delete this._window;
-
- // delete this._onSlowTyping;
-
this._commandOutputManager.onOutput.remove(this._outputted, this);
- delete this._commandOutputManager;
for (var i = 0; i < this._monitoredElements.length; i++) {
var monitor = this._monitoredElements[i];
@@ -130,6 +123,12 @@ FocusManager.prototype.destroy = function() {
this._window.clearTimeout(this._blurDelayTimeout);
this._blurDelayTimeout = null;
}
+
+ // delete this._onSlowTyping;
+ delete this._focused;
+ delete this._document;
+ delete this._window;
+ delete this._commandOutputManager;
};
/**

0 comments on commit 4147aea

Please sign in to comment.