1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 15:22:26 +01:00

fix loading of style.js - don't redefine function parameters with let (possibly

a Windows specific SpiderMonkey bug
This commit is contained in:
Doug Kearns
2008-11-01 02:11:15 +00:00
parent b904f580bb
commit 14a646e2ce

View File

@@ -129,7 +129,7 @@ function Highlights(name, store, serial)
.split("\n").filter(function (s) /\S/.test(s)) .split("\n").filter(function (s) /\S/.test(s))
.forEach(function (style) .forEach(function (style)
{ {
let style = Highlight.apply(Highlight, Array.slice(style.match(/^\s*([^,\s]+)(?:,([^,\s]+))?(?:,([^,\s]+))?(?:\s+(.*))?/), 1)); style = Highlight.apply(Highlight, Array.slice(style.match(/^\s*([^,\s]+)(?:,([^,\s]+))?(?:,([^,\s]+))?(?:\s+(.*))?/), 1));
highlight[style.class] = style; highlight[style.class] = style;
self.set(style.class); self.set(style.class);
}); });