diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-03-12 16:49:50 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-03-12 16:49:50 -0400 |
commit | 90e68c3e3f4bb2f1a427a01586981e62bf74b898 (patch) | |
tree | 600d90d2704652b170c0d96b2fee988d08beb42e /toolkit/mozapps/extensions/content | |
parent | 4a70c6dd24e8b6c8b86782d9fd02403db4629aad (diff) | |
download | UXP-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.js | 6 |
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); |