From d05be51412bd3bf274230d7bed00502e55cea1e8 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Sun, 5 Aug 2012 06:11:23 +0900 Subject: [PATCH] Delete unused reference --- modules/browser.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index 82725fdc..6ab78d1e 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -5154,8 +5154,9 @@ TreeStyleTabBrowser.prototype = { var CSSTransitionEnabled = ('Transition' in aTab.style || 'MozTransition' in aTab.style); if (CSSTransitionEnabled) { aTab.__treestyletab__updateTabIndentTask = function(aTime, aBeginning, aChange, aDuration) { - if (self.isDestroying) return true; - aTab.style.setProperty(self.indentCSSProp, aIndent+'px', 'important'); + delete aTab.__treestyletab__updateTabIndentTask; + if (!self.isDestroying) + aTab.style.setProperty(self.indentCSSProp, aIndent+'px', 'important'); return true; }; this.animationManager.addTask( @@ -5198,10 +5199,10 @@ TreeStyleTabBrowser.prototype = { stopTabIndentAnimation : function TSTBrowser_stopTabIndentAnimation(aTab) { if (!aTab.parentNode) return; // do nothing for closed tab! - this.animationManager.removeTask( aTab.__treestyletab__updateTabIndentTask ); + delete aTab.__treestyletab__updateTabIndentTask; }, inheritTabIndent : function TSTBrowser_inheritTabIndent(aNewTab, aExistingTab)