This commit is contained in:
Nicolas Stepien 2011-06-02 21:27:01 +02:00
parent 99b1cfed0b
commit 3761376322
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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', {}