зеркало из https://github.com/mozilla/pjs.git
Bug 321490: Make SeaMonkey compatible again with moveTabTo implementation of the Firefox
To avoid JS strict warnings use |this.mTabs.item(aDestIndex)| instead of |this.mTabs[aDestIndex]| since we know |aDestIndex| can validly be |this.mTabs.length|. sr=Neil
This commit is contained in:
Родитель
5aebe78069
Коммит
2e597c3d61
|
@ -1375,8 +1375,7 @@
|
|||
|
||||
if (aDestIndex >= aSrcIndex)
|
||||
++aDestIndex;
|
||||
var tab = this.mTabContainer.insertBefore(this.mTabs[aSrcIndex],
|
||||
this.mTabs[aDestIndex]);
|
||||
var tab = this.mTabContainer.insertBefore(this.mTabs[aSrcIndex], this.mTabs.item(aDestIndex));
|
||||
|
||||
this.mCurrentTab.selected = true;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче