From 4ef7936754ae62cf1ad75a522b3231f804acffc9 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 10 Dec 2008 13:51:22 +1100 Subject: [PATCH] fix error in statusline.updateTabCount when go has "n" or "N" and tabs have been deleted - mTabs can contain more items than mTabs.length --- common/content/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/ui.js b/common/content/ui.js index e9073117..882cf35c 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -1846,7 +1846,7 @@ function StatusLine() //{{{ // tab numbers set if (options.get("guioptions").has("n", "N")) { - for (let [i, tab] in Iterator(getBrowser().mTabs)) + for (let [i, tab] in util.Array.iterator2(getBrowser().mTabs)) tab.setAttribute("ordinal", i + 1); }