This is wrong and you know it.

This commit is contained in:
Nicolas Stepien 2011-05-04 18:42:25 +02:00
parent 741e52a047
commit 8d30da4885
2 changed files with 9 additions and 7 deletions

View File

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

View File

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