Bug 596833 - Refinement for bug 595943: No need to iterate over all tabs, just the ones at the beginning r=ian

This commit is contained in:
Raymond Lee 2011-04-08 13:19:48 +08:00
Родитель b5613a6def
Коммит 4aee9856b2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -714,9 +714,9 @@ let UI = {
// if not closing the last tab
if (gBrowser.tabs.length > 1) {
// Don't return to TabView if there are any app tabs
for (let a = 0; a < gBrowser.tabs.length; a++) {
for (let a = 0; a < gBrowser._numPinnedTabs; a++) {
let theTab = gBrowser.tabs[a];
if (theTab.pinned && gBrowser._removingTabs.indexOf(theTab) == -1)
if (gBrowser._removingTabs.indexOf(theTab) == -1)
return;
}