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:
jag%tty.nl 2007-03-31 23:08:44 +00:00
Родитель 5aebe78069
Коммит 2e597c3d61
1 изменённых файлов: 1 добавлений и 2 удалений

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

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