Delete unused reference
This commit is contained in:
parent
b82b985e19
commit
d05be51412
@ -5154,7 +5154,8 @@ 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;
|
||||||
|
if (!self.isDestroying)
|
||||||
aTab.style.setProperty(self.indentCSSProp, aIndent+'px', 'important');
|
aTab.style.setProperty(self.indentCSSProp, aIndent+'px', 'important');
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user