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;
},
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;

View File

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