From bd66ef980c8a53e8d1309aebb673b5470d2f2863 Mon Sep 17 00:00:00 2001
From: "gavin%gavinsharp.com"
Date: Mon, 15 May 2006 20:28:57 +0000
Subject: [PATCH] Bug 337180: assignment to undeclared variable menuitem, patch
by Pam Greene , r=gavin
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@196576 18797224-902f-48f8-a5cc-f745e15eee43
---
.../components/search/content/search.xml | 52 +++++++++----------
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/mozilla/browser/components/search/content/search.xml b/mozilla/browser/components/search/content/search.xml
index 991fa1613af..c0167117e97 100644
--- a/mozilla/browser/components/search/content/search.xml
+++ b/mozilla/browser/components/search/content/search.xml
@@ -71,9 +71,9 @@
completeselectedindex="true"
tabscrolling="true"
xbl:inherits="disableautocomplete,searchengine,src">
-
-
+
# XXX We'd like to add a context="_child" property to this toolbarbutton, but doing
# so causes the context menu to show up for the textbox too, and subsequently crashes
# the app on shutdown. See bug 336662.
@@ -213,7 +213,7 @@
]]>
= 0; i--) {
@@ -249,12 +249,12 @@
popup.insertBefore(separator, insertLocation);
// Insert the "add this engine" items.
- for (var i = 0; i < addengines.length; i++) {
- menuitem = document.createElement("menuitem");
+ for (var i = 0; i < addengines.length; i++) {
+ var menuitem = document.createElement("menuitem");
var engineInfo = addengines[i];
- var labelStr =
- this._stringBundle.getFormattedString("cmd_addFoundEngine",
- [engineInfo.title]);
+ var labelStr =
+ this._stringBundle.getFormattedString("cmd_addFoundEngine",
+ [engineInfo.title]);
menuitem = document.createElementNS(kXULNS, "menuitem");
menuitem.setAttribute("class", "menuitem-iconic addengine-item");
menuitem.setAttribute("label", labelStr);
@@ -270,7 +270,7 @@
@@ -293,7 +293,7 @@
menuitem.setAttribute("id", this._engines[i].name);
menuitem.setAttribute("class", "menuitem-iconic searchbar-engine-menuitem");
// Since this menu is rebuilt by the observer method whenever a new
- // engine is selected, the "selected" attribute does not need to be
+ // engine is selected, the "selected" attribute does not need to be
// explicitly cleared anywhere.
if (this._engines[i] == this.currentEngine)
menuitem.setAttribute("selected", "true");
@@ -308,7 +308,7 @@
@@ -434,7 +434,7 @@
-
+
-
+
@@ -591,22 +591,22 @@