summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-10 16:16:33 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-10 16:16:33 -0500
commitc26e1ae251bdbd36e3debfe9f157ff0ae9ac93d9 (patch)
tree682677d802d6ec178f15686b3a1b7e37239f6e22 /toolkit/mozapps/extensions
parent3313fd9c51070fadb1775a41eb5e8d731dfb53e8 (diff)
downloadUXP-c26e1ae251bdbd36e3debfe9f157ff0ae9ac93d9.tar
UXP-c26e1ae251bdbd36e3debfe9f157ff0ae9ac93d9.tar.gz
UXP-c26e1ae251bdbd36e3debfe9f157ff0ae9ac93d9.tar.lz
UXP-c26e1ae251bdbd36e3debfe9f157ff0ae9ac93d9.tar.xz
UXP-c26e1ae251bdbd36e3debfe9f157ff0ae9ac93d9.zip
Fix for loops in LightweightThemeManager.jsm (SyntaxError: missing ] after element list)
Diffstat (limited to 'toolkit/mozapps/extensions')
-rw-r--r--toolkit/mozapps/extensions/LightweightThemeManager.jsm8
1 files changed, 7 insertions, 1 deletions
diff --git a/toolkit/mozapps/extensions/LightweightThemeManager.jsm b/toolkit/mozapps/extensions/LightweightThemeManager.jsm
index 66761efe2..5856bfa91 100644
--- a/toolkit/mozapps/extensions/LightweightThemeManager.jsm
+++ b/toolkit/mozapps/extensions/LightweightThemeManager.jsm
@@ -386,7 +386,13 @@ this.LightweightThemeManager = {
return;
}
- aCallback([new AddonWrapper(a) for each (a in this.usedThemes)]);
+ // Tycho: aCallback([new AddonWrapper(a) for each (a in this.usedThemes)]);
+ let result = [];
+ for each(let a in this.usedThemes) {
+ result.push(new AddonWrapper(a));
+ }
+
+ aCallback(result);
},
};