This is wrong and you know it.
This commit is contained in:
parent
741e52a047
commit
8d30da4885
14
4chan_x.js
14
4chan_x.js
@ -1491,18 +1491,20 @@
|
||||
return _results;
|
||||
},
|
||||
refresh: function(watched) {
|
||||
var board, div, id, props, _results;
|
||||
while (div = $('#watcher > div:not(.move)')) {
|
||||
var board, div, id, props, _i, _len, _ref, _results;
|
||||
_ref = $$('#watcher > div:not(.move)');
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
div = _ref[_i];
|
||||
$.remove(div);
|
||||
}
|
||||
_results = [];
|
||||
for (board in watched) {
|
||||
_results.push((function() {
|
||||
var _ref, _results2;
|
||||
_ref = watched[board];
|
||||
var _ref2, _results2;
|
||||
_ref2 = watched[board];
|
||||
_results2 = [];
|
||||
for (id in _ref) {
|
||||
props = _ref[id];
|
||||
for (id in _ref2) {
|
||||
props = _ref2[id];
|
||||
_results2.push(watcher.addLink(props, $('#watcher')));
|
||||
}
|
||||
return _results2;
|
||||
|
||||
@ -1183,7 +1183,7 @@ watcher =
|
||||
$.before input, favicon
|
||||
|
||||
refresh: (watched) ->
|
||||
while div = $ '#watcher > div:not(.move)'
|
||||
for div in $$ '#watcher > div:not(.move)'
|
||||
$.remove div
|
||||
for board of watched
|
||||
for id, props of watched[board]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user