From 45c35122eda72347e24db68bccf682da22e5f701 Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Wed, 22 Aug 2007 05:04:47 +0000 Subject: [PATCH] Remove extra trailing brackets to fix orange, rs=brendan git-svn-id: svn://10.0.0.236/trunk@232781 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/base/content/tabbrowser.xml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/mozilla/browser/base/content/tabbrowser.xml b/mozilla/browser/base/content/tabbrowser.xml index 73cd3e51de6..bf3785ae205 100644 --- a/mozilla/browser/base/content/tabbrowser.xml +++ b/mozilla/browser/base/content/tabbrowser.xml @@ -1295,18 +1295,17 @@ = 0; --i) { - if (childNodes[i] != aTab) - this.removeTab(childNodes[i]); - } + for (var i = childNodes.length - 1; i >= 0; --i) { + if (childNodes[i] != aTab) + this.removeTab(childNodes[i]); } } ]]> @@ -1496,7 +1495,6 @@ // see comment above destroy above oldBrowser.focusedWindow = null; oldBrowser.focusedElement = null; - } ]]>