From f1a7942d56c354a7ed71acab866886933d01ad0f Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 29 Apr 2012 14:34:25 +0200 Subject: [PATCH] Fix Thread Watcher. --- 4chan_x.user.js | 8 ++++---- script.coffee | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 6517e3657..b99c61db4 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2615,13 +2615,13 @@ Watcher = { init: function() { - var favicon, html, input, inputs, _i, _len; + var favicon, html, input, _i, _len, _ref; html = '
Thread Watcher
'; this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', html); $.add(d.body, this.dialog); - inputs = $$('.op > input'); - for (_i = 0, _len = inputs.length; _i < _len; _i++) { - input = inputs[_i]; + _ref = $$('.op input'); + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + input = _ref[_i]; favicon = $.el('img', { className: 'favicon' }); diff --git a/script.coffee b/script.coffee index b9f93844e..791f7ae21 100644 --- a/script.coffee +++ b/script.coffee @@ -2087,8 +2087,7 @@ Watcher = $.add d.body, @dialog #add watch buttons - inputs = $$ '.op > input' - for input in inputs + for input in $$ '.op input' favicon = $.el 'img', className: 'favicon' $.on favicon, 'click', @cb.toggle