Tidying up the removal of before/afterselected attributes before we remove a tab (bug 137836). r=pink, sr=blake, thanks to neil@parkwaycc.co.uk for the suggestion.
git-svn-id: svn://10.0.0.236/trunk@119788 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -731,10 +731,7 @@
|
||||
var oldTab = aTab;
|
||||
|
||||
// clean up the before/afterselected attributes before removing the tab
|
||||
if (index > 0)
|
||||
this.mTabContainer.childNodes[index-1].removeAttribute("beforeselected");
|
||||
if (index < this.mTabContainer.childNodes.length - 1)
|
||||
this.mTabContainer.childNodes[index+1].removeAttribute("afterselected");
|
||||
oldTab.selected = false;
|
||||
|
||||
this.mTabContainer.removeChild(oldTab);
|
||||
this.mPanelContainer.removeChild(oldBrowser);
|
||||
|
||||
Reference in New Issue
Block a user