mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 771086 - Fix 4 strict warnings in toolkit/mozapps/extensions/content/extensions.js r=Unfocused
This commit is contained in:
parent
7461892e81
commit
83d0380f9f
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user