From ad83828db541f8397a3f3dca78e2410d8e1cedc5 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 24 Jul 2011 08:53:31 -0700 Subject: [PATCH] it was for this --- 4chan_x.user.js | 5 +++-- script.coffee | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 3264bb062..6db4a40be 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -59,7 +59,7 @@ */ (function() { - var $, $$, Favicon, NAMESPACE, Recaptcha, Time, anonymize, conf, config, cooldown, d, expandComment, expandThread, firstRun, g, imgExpand, imgGif, imgHover, imgPreloading, key, keybinds, log, main, nav, nodeInserted, options, qr, quoteBacklink, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, revealSpoilers, sauce, threadHiding, threadStats, threading, titlePost, ui, unread, updater, watcher, _ref; + var $, $$, Favicon, NAMESPACE, Recaptcha, Time, anonymize, conf, config, cooldown, d, expandComment, expandThread, firstRun, g, imgExpand, imgGif, imgHover, imgPreloading, key, keybinds, log, main, nav, nodeInserted, options, qr, quoteBacklink, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, revealSpoilers, sauce, threadHiding, threadStats, threading, titlePost, ui, unread, updater, val, watcher, _ref; var __slice = Array.prototype.slice; config = { main: { @@ -498,7 +498,8 @@ }); } for (key in conf) { - conf[key] = $.getValue(key, conf[key]); + val = conf[key]; + conf[key] = $.getValue(key, val); } $$ = function(selector, root) { if (root == null) { diff --git a/script.coffee b/script.coffee index 914bd8dd3..ad46d7763 100644 --- a/script.coffee +++ b/script.coffee @@ -352,8 +352,8 @@ else localStorage[name] = JSON.stringify value #load values from localStorage -for key of conf - conf[key] = $.getValue key, conf[key] +for key, val of conf + conf[key] = $.getValue key, val $$ = (selector, root=d.body) -> Array::slice.call root.querySelectorAll selector