From 62fb7040e3040de77e87013ad454ed3b71d300a8 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 31 Oct 2008 22:49:53 +0000 Subject: [PATCH] Fix bug with multiple windows --- content/style.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/content/style.js b/content/style.js index 0b5cd46d..f31306f3 100644 --- a/content/style.js +++ b/content/style.js @@ -348,9 +348,12 @@ function Styles(name, store, serial) } } } -Styles.prototype = { - get sites() util.Array.uniq(util.Array.flatten([v.sites for ([k, v] in this.userSheets)])) -}; +let (array = util.Array) +{ + Styles.prototype = { + get sites() array.uniq(array.flatten([v.sites for ([k, v] in this.userSheets)])) + }; +} const styles = storage.newObject("styles", Styles, false); const highlight = storage.newObject("highlight", Highlights, false);