summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/content
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-03-12 16:49:50 -0400
committerMatt A. Tobin <email@mattatobin.com>2018-03-12 16:49:50 -0400
commit90e68c3e3f4bb2f1a427a01586981e62bf74b898 (patch)
tree600d90d2704652b170c0d96b2fee988d08beb42e /toolkit/mozapps/extensions/content
parent4a70c6dd24e8b6c8b86782d9fd02403db4629aad (diff)
downloadUXP-90e68c3e3f4bb2f1a427a01586981e62bf74b898.tar
UXP-90e68c3e3f4bb2f1a427a01586981e62bf74b898.tar.gz
UXP-90e68c3e3f4bb2f1a427a01586981e62bf74b898.tar.lz
UXP-90e68c3e3f4bb2f1a427a01586981e62bf74b898.tar.xz
UXP-90e68c3e3f4bb2f1a427a01586981e62bf74b898.zip
Fix for loops in selectAddons.js (SyntaxError: missing ] after element list)
Diffstat (limited to 'toolkit/mozapps/extensions/content')
-rw-r--r--toolkit/mozapps/extensions/content/selectAddons.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/toolkit/mozapps/extensions/content/selectAddons.js b/toolkit/mozapps/extensions/content/selectAddons.js
index 33ab8a84e..f80932b3f 100644
--- a/toolkit/mozapps/extensions/content/selectAddons.js
+++ b/toolkit/mozapps/extensions/content/selectAddons.js
@@ -123,7 +123,11 @@ var gChecking = {
if (this._completeCount < this._addonCount)
return;
- var addons = [gAddons[id] for (id in gAddons)];
+ // Tycho: var addons = [gAddons[id] for (id in gAddons)];
+ var addons = [];
+ for (let id in gAddons) {
+ addons.push(gAddons[id])
+ }
addons.sort(function sortAddons(a, b) {
let orderA = orderForScope(a.addon.scope);