From 14a646e2ce12ad816f08e3322a7cb524e617ed96 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 1 Nov 2008 02:11:15 +0000 Subject: [PATCH] fix loading of style.js - don't redefine function parameters with let (possibly a Windows specific SpiderMonkey bug --- content/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/style.js b/content/style.js index 731c1c9f..7f0d84cd 100644 --- a/content/style.js +++ b/content/style.js @@ -129,7 +129,7 @@ function Highlights(name, store, serial) .split("\n").filter(function (s) /\S/.test(s)) .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; self.set(style.class); });