From 1ce6e067e8fde2082e7f42afe6396297a9616118 Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 2 Dec 2008 02:51:41 +0000 Subject: [PATCH] https://bugzilla.mozilla.org/show_bug.cgi?id=406216 git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3424 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 9e6f9f20..ca1908dc 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -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; for (var i = 0, maxi = tabs.length; i < maxi; i++) {