don't update _notifyBackgroundTab twice
This commit is contained in:
parent
b665a8ca11
commit
7aed5e240a
@ -1063,8 +1063,10 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
source = b.mTabContainer._notifyBackgroundTab.toSource();
|
||||||
|
if (source.indexOf('TreeStyleTabService.getTabBrowserFromChild') < 0) {
|
||||||
eval('b.mTabContainer._notifyBackgroundTab = '+
|
eval('b.mTabContainer._notifyBackgroundTab = '+
|
||||||
b.mTabContainer._notifyBackgroundTab.toSource().replace(
|
source.toSource().replace(
|
||||||
'{',
|
'{',
|
||||||
'{ var treeStyleTab = TreeStyleTabService.getTabBrowserFromChild(this).treeStyleTab;'
|
'{ var treeStyleTab = TreeStyleTabService.getTabBrowserFromChild(this).treeStyleTab;'
|
||||||
).replace(
|
).replace(
|
||||||
@ -1077,6 +1079,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
/\.right/g, '[treeStyleTab.endProp]'
|
/\.right/g, '[treeStyleTab.endProp]'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (b.tabContainer && '_getDropIndex' in b.tabContainer) { // Firefox 4.0 or later
|
if (b.tabContainer && '_getDropIndex' in b.tabContainer) { // Firefox 4.0 or later
|
||||||
eval('b.tabContainer._getDropIndex = '+
|
eval('b.tabContainer._getDropIndex = '+
|
||||||
|
Loading…
Reference in New Issue
Block a user