don't call positionPinnedTabs() too many times
This commit is contained in:
parent
961460cb0d
commit
30608ffdf7
@ -237,8 +237,12 @@ TreeStyleTabBrowser.prototype = {
|
||||
},
|
||||
positionPinnedTabsWithDelay : function TSTBrowser_positionPinnedTabsWithDelay()
|
||||
{
|
||||
window.setTimeout(function(aSelf) {
|
||||
if (this.positionPinnedTabsWithDelayTimer)
|
||||
return;
|
||||
|
||||
this.positionPinnedTabsWithDelay = window.setTimeout(function(aSelf) {
|
||||
aSelf.positionPinnedTabs();
|
||||
aSelf.positionPinnedTabsWithDelay = null;
|
||||
}, 0, this);
|
||||
},
|
||||
PINNED_TAB_DEFAULT_WIDTH : 24,
|
||||
|
Loading…
Reference in New Issue
Block a user