зеркало из https://github.com/mozilla/pjs.git
Reverting tab close behavior.
This commit is contained in:
Родитель
ab66eafcd3
Коммит
43c4fc9fcd
|
@ -774,12 +774,15 @@
|
|||
// Now select the new tab before nuking the old one.
|
||||
var currentIndex = this.mPanelContainer.selectedIndex;
|
||||
|
||||
// Now select the new tab before nuking the old one.
|
||||
var currentIndex = this.mPanelContainer.selectedIndex;
|
||||
|
||||
var newIndex = -1;
|
||||
if (currentIndex > index)
|
||||
newIndex = currentIndex-1;
|
||||
else if (currentIndex < index)
|
||||
newIndex = currentIndex;
|
||||
else if (index > 0)
|
||||
else if (index == l - 1)
|
||||
newIndex = index-1;
|
||||
else
|
||||
newIndex = index;
|
||||
|
|
Загрузка…
Ссылка в новой задаче