Fix Thread Watcher.

This commit is contained in:
Nicolas Stepien 2012-04-29 14:34:25 +02:00
parent d7b464205a
commit f1a7942d56
2 changed files with 5 additions and 6 deletions

View File

@ -2615,13 +2615,13 @@
Watcher = { Watcher = {
init: function() { init: function() {
var favicon, html, input, inputs, _i, _len; var favicon, html, input, _i, _len, _ref;
html = '<div class=move>Thread Watcher</div>'; html = '<div class=move>Thread Watcher</div>';
this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', html); this.dialog = UI.dialog('watcher', 'top: 50px; left: 0px;', html);
$.add(d.body, this.dialog); $.add(d.body, this.dialog);
inputs = $$('.op > input'); _ref = $$('.op input');
for (_i = 0, _len = inputs.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
input = inputs[_i]; input = _ref[_i];
favicon = $.el('img', { favicon = $.el('img', {
className: 'favicon' className: 'favicon'
}); });

View File

@ -2087,8 +2087,7 @@ Watcher =
$.add d.body, @dialog $.add d.body, @dialog
#add watch buttons #add watch buttons
inputs = $$ '.op > input' for input in $$ '.op input'
for input in inputs
favicon = $.el 'img', favicon = $.el 'img',
className: 'favicon' className: 'favicon'
$.on favicon, 'click', @cb.toggle $.on favicon, 'click', @cb.toggle