it was for this

This commit is contained in:
James Campos 2011-07-24 08:53:31 -07:00
parent 2c2aa309c7
commit ad83828db5
2 changed files with 5 additions and 4 deletions

View File

@ -59,7 +59,7 @@
*/ */
(function() { (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; var __slice = Array.prototype.slice;
config = { config = {
main: { main: {
@ -498,7 +498,8 @@
}); });
} }
for (key in conf) { for (key in conf) {
conf[key] = $.getValue(key, conf[key]); val = conf[key];
conf[key] = $.getValue(key, val);
} }
$$ = function(selector, root) { $$ = function(selector, root) {
if (root == null) { if (root == null) {

View File

@ -352,8 +352,8 @@ else
localStorage[name] = JSON.stringify value localStorage[name] = JSON.stringify value
#load values from localStorage #load values from localStorage
for key of conf for key, val of conf
conf[key] = $.getValue key, conf[key] conf[key] = $.getValue key, val
$$ = (selector, root=d.body) -> $$ = (selector, root=d.body) ->
Array::slice.call root.querySelectorAll selector Array::slice.call root.querySelectorAll selector