From 3761376322fa11bb1cae53f0722b0f29f204d363 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 2 Jun 2011 21:27:01 +0200 Subject: [PATCH] Bitchy. --- 4chan_x.user.js | 4 ++-- script.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 4ce17c816..567409d3f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1531,11 +1531,11 @@ $.before(input, favicon); } watcher.refresh(); - return $.bind(window, 'storage', (function(e) { + return $.bind(window, 'storage', function(e) { if (e.key === 'AEOS.4chan_x.watched') { return watcher.refresh(); } - })); + }); }, refresh: function() { var board, dialog, div, favicon, id, link, props, watched, watchedBoard, x, _i, _j, _len, _len2, _ref, _ref2, _ref3, _results; diff --git a/script.coffee b/script.coffee index 692f81278..c63860aa0 100644 --- a/script.coffee +++ b/script.coffee @@ -1245,7 +1245,7 @@ watcher = #populate watcher, display watch buttons watcher.refresh() - $.bind window, 'storage', ((e) -> watcher.refresh() if e.key is 'AEOS.4chan_x.watched') + $.bind window, 'storage', (e) -> watcher.refresh() if e.key is 'AEOS.4chan_x.watched' refresh: -> watched = $.getValue 'watched', {}