git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3424 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-12-02 02:51:41 +00:00
parent d90f6725dd
commit 1ce6e067e8

View File

@ -411,6 +411,14 @@ TreeStyleTabBrowser.prototype = {
)); ));
} }
// https://bugzilla.mozilla.org/show_bug.cgi?id=406216
if ('_beginRemoveTab' in b) {
eval('b._beginRemoveTab = '+b._beginRemoveTab.toSource().replace(
'for (let i = 0; i < l; ++i) {',
'l = this.mTabs.length; $&'
));
}
var tabs = b.mTabContainer.childNodes; var tabs = b.mTabContainer.childNodes;
for (var i = 0, maxi = tabs.length; i < maxi; i++) for (var i = 0, maxi = tabs.length; i < maxi; i++)
{ {