Bug 771086 - Fix 4 strict warnings in toolkit/mozapps/extensions/content/extensions.js r=Unfocused

This commit is contained in:
Abhishek Potnis 2012-08-20 07:26:00 +12:00
parent 7461892e81
commit 83d0380f9f

View File

@ -1477,8 +1477,8 @@ var gCategories = {
category.setAttribute("priority", aPriority);
category.setAttribute("hidden", aStartHidden);
var node = this.node.firstChild;
while (node = node.nextSibling) {
var node;
for (node of this.node.children) {
var nodePriority = parseInt(node.getAttribute("priority"));
// If the new type's priority is higher than this one then this is the
// insertion point
@ -1650,7 +1650,7 @@ var gHeader = {
this._search.addEventListener("command", function search_onCommand(aEvent) {
var query = aEvent.target.value;
if (query.length == 0)
return false;
return;
gViewController.loadView("addons://search/" + encodeURIComponent(query));
}, false);
@ -2306,6 +2306,7 @@ var gSearchView = {
return listitem;
listitem = listitem.nextSibling;
}
return null;
}
};
@ -2458,6 +2459,7 @@ var gListView = {
return listitem;
listitem = listitem.nextSibling;
}
return null;
}
};