1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 21:37:58 +01:00

fix error in statusline.updateTabCount when go has "n" or "N" and tabs have been deleted - mTabs can contain more items than mTabs.length

This commit is contained in:
Doug Kearns
2008-12-10 13:51:22 +11:00
parent ea1049ee90
commit 4ef7936754

View File

@@ -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);
}