From de116110050d3d863519c268bce869ef08d00d17 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Tue, 14 Jun 2011 02:04:37 +0900 Subject: [PATCH] revert --- modules/window.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/window.js b/modules/window.js index d9233250..6c21be2e 100644 --- a/modules/window.js +++ b/modules/window.js @@ -415,14 +415,7 @@ TreeStyleTabWindow.prototype = { var w = this.window; w.removeEventListener('load', this, false); - /** - * We should register event handler with delay, to do destruction - * process later than other addons. - */ - var self = this; - this.Deferred.next(function() { - w.addEventListener('unload', self, false); - }); + w.addEventListener('unload', this, false); if ( w.location.href.indexOf('chrome://browser/content/browser.xul') != 0 ||