Delete unused reference

This commit is contained in:
Piro / SHIMODA Hiroshi 2012-08-05 06:11:23 +09:00
parent b82b985e19
commit d05be51412

View File

@ -5154,8 +5154,9 @@ TreeStyleTabBrowser.prototype = {
var CSSTransitionEnabled = ('Transition' in aTab.style || 'MozTransition' in aTab.style); var CSSTransitionEnabled = ('Transition' in aTab.style || 'MozTransition' in aTab.style);
if (CSSTransitionEnabled) { if (CSSTransitionEnabled) {
aTab.__treestyletab__updateTabIndentTask = function(aTime, aBeginning, aChange, aDuration) { aTab.__treestyletab__updateTabIndentTask = function(aTime, aBeginning, aChange, aDuration) {
if (self.isDestroying) return true; delete aTab.__treestyletab__updateTabIndentTask;
aTab.style.setProperty(self.indentCSSProp, aIndent+'px', 'important'); if (!self.isDestroying)
aTab.style.setProperty(self.indentCSSProp, aIndent+'px', 'important');
return true; return true;
}; };
this.animationManager.addTask( this.animationManager.addTask(
@ -5198,10 +5199,10 @@ TreeStyleTabBrowser.prototype = {
stopTabIndentAnimation : function TSTBrowser_stopTabIndentAnimation(aTab) stopTabIndentAnimation : function TSTBrowser_stopTabIndentAnimation(aTab)
{ {
if (!aTab.parentNode) return; // do nothing for closed tab! if (!aTab.parentNode) return; // do nothing for closed tab!
this.animationManager.removeTask( this.animationManager.removeTask(
aTab.__treestyletab__updateTabIndentTask aTab.__treestyletab__updateTabIndentTask
); );
delete aTab.__treestyletab__updateTabIndentTask;
}, },
inheritTabIndent : function TSTBrowser_inheritTabIndent(aNewTab, aExistingTab) inheritTabIndent : function TSTBrowser_inheritTabIndent(aNewTab, aExistingTab)