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;
|
return _results;
|
||||||
},
|
},
|
||||||
refresh: function(watched) {
|
refresh: function(watched) {
|
||||||
var board, div, id, props, _results;
|
var board, div, id, props, _i, _len, _ref, _results;
|
||||||
while (div = $('#watcher > div:not(.move)')) {
|
_ref = $$('#watcher > div:not(.move)');
|
||||||
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
|
div = _ref[_i];
|
||||||
$.remove(div);
|
$.remove(div);
|
||||||
}
|
}
|
||||||
_results = [];
|
_results = [];
|
||||||
for (board in watched) {
|
for (board in watched) {
|
||||||
_results.push((function() {
|
_results.push((function() {
|
||||||
var _ref, _results2;
|
var _ref2, _results2;
|
||||||
_ref = watched[board];
|
_ref2 = watched[board];
|
||||||
_results2 = [];
|
_results2 = [];
|
||||||
for (id in _ref) {
|
for (id in _ref2) {
|
||||||
props = _ref[id];
|
props = _ref2[id];
|
||||||
_results2.push(watcher.addLink(props, $('#watcher')));
|
_results2.push(watcher.addLink(props, $('#watcher')));
|
||||||
}
|
}
|
||||||
return _results2;
|
return _results2;
|
||||||
|
|||||||
@ -1183,7 +1183,7 @@ watcher =
|
|||||||
$.before input, favicon
|
$.before input, favicon
|
||||||
|
|
||||||
refresh: (watched) ->
|
refresh: (watched) ->
|
||||||
while div = $ '#watcher > div:not(.move)'
|
for div in $$ '#watcher > div:not(.move)'
|
||||||
$.remove div
|
$.remove div
|
||||||
for board of watched
|
for board of watched
|
||||||
for id, props of watched[board]
|
for id, props of watched[board]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user