Aeosynth you dummy.

This commit is contained in:
Nicolas Stepien 2011-05-05 19:28:30 +02:00
parent 458f03167b
commit d31ec005f8
2 changed files with 5 additions and 3 deletions

View File

@ -1482,7 +1482,7 @@
} }
watcher.refresh($.getValue('watched', {})); watcher.refresh($.getValue('watched', {}));
return setInterval((function() { return setInterval((function() {
if (Date.now() > $.getValue('watcher.lastUpdated', 0)) { if (watcher.lastUpdated < $.getValue('watcher.lastUpdated', 0)) {
return watcher.refresh($.getValue('watched', {})); return watcher.refresh($.getValue('watched', {}));
} }
}), 1000); }), 1000);
@ -1512,7 +1512,8 @@
favicon.src = Favicon.empty; favicon.src = Favicon.empty;
} }
} }
return $.setValue('watcher.lastUpdated', Date.now()); $.setValue('watcher.lastUpdated', Date.now());
return watcher.lastUpdated = Date.now();
}, },
addLink: function(props, dialog) { addLink: function(props, dialog) {
var div, link, x; var div, link, x;

View File

@ -1179,7 +1179,7 @@ watcher =
watcher.refresh $.getValue 'watched', {} watcher.refresh $.getValue 'watched', {}
setInterval (-> setInterval (->
if Date.now() > $.getValue 'watcher.lastUpdated', 0 if watcher.lastUpdated < $.getValue 'watcher.lastUpdated', 0
watcher.refresh($.getValue 'watched', {}) watcher.refresh($.getValue 'watched', {})
), 1000 ), 1000
@ -1197,6 +1197,7 @@ watcher =
else else
favicon.src = Favicon.empty favicon.src = Favicon.empty
$.setValue 'watcher.lastUpdated', Date.now() $.setValue 'watcher.lastUpdated', Date.now()
watcher.lastUpdated = Date.now()
addLink: (props, dialog) -> addLink: (props, dialog) ->
div = $.el 'div' div = $.el 'div'