bind instead of call
This commit is contained in:
parent
8357c51c3b
commit
407738f553
@ -1588,6 +1588,7 @@
|
|||||||
$.bind(verbose, 'click', updater.cb.verbose);
|
$.bind(verbose, 'click', updater.cb.verbose);
|
||||||
$.bind(autoUpT, 'click', updater.cb.autoUpdate);
|
$.bind(autoUpT, 'click', updater.cb.autoUpdate);
|
||||||
$.bind(interva, 'change', updater.cb.interval);
|
$.bind(interva, 'change', updater.cb.interval);
|
||||||
|
$.bind(interva, 'change', $.cb.value);
|
||||||
$.bind(updNow, 'click', updater.updateNow);
|
$.bind(updNow, 'click', updater.updateNow);
|
||||||
updater.count = $('#count', dialog);
|
updater.count = $('#count', dialog);
|
||||||
updater.timer = $('#timer', dialog);
|
updater.timer = $('#timer', dialog);
|
||||||
@ -1616,8 +1617,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
interval: function() {
|
interval: function() {
|
||||||
updater.interval = this.value = this.value.match(/\d+/)[0];
|
return updater.interval = this.value = this.value.match(/\d+/)[0];
|
||||||
return $.cb.value.call(this);
|
|
||||||
},
|
},
|
||||||
update: function() {
|
update: function() {
|
||||||
var arr, body, br, id, input, replies, reply, _i, _len, _ref, _ref2;
|
var arr, body, br, id, input, replies, reply, _i, _len, _ref, _ref2;
|
||||||
@ -2140,7 +2140,8 @@
|
|||||||
}
|
}
|
||||||
$.bind(quote, 'mouseover', quotePreview.mouseover);
|
$.bind(quote, 'mouseover', quotePreview.mouseover);
|
||||||
$.bind(quote, 'mousemove', ui.hover);
|
$.bind(quote, 'mousemove', ui.hover);
|
||||||
_results.push($.bind(quote, 'mouseout', quotePreview.mouseout));
|
$.bind(quote, 'mouseout', quotePreview.mouseout);
|
||||||
|
_results.push($.bind(quote, 'msoueout', ui.hoverend));
|
||||||
}
|
}
|
||||||
return _results;
|
return _results;
|
||||||
});
|
});
|
||||||
@ -2179,9 +2180,8 @@
|
|||||||
mouseout: function() {
|
mouseout: function() {
|
||||||
var el;
|
var el;
|
||||||
if (el = d.getElementById(this.hash.slice(1))) {
|
if (el = d.getElementById(this.hash.slice(1))) {
|
||||||
$.removeClass(el, 'qphl');
|
return $.removeClass(el, 'qphl');
|
||||||
}
|
}
|
||||||
return ui.hoverend();
|
|
||||||
},
|
},
|
||||||
parse: function(req, id, threadID) {
|
parse: function(req, id, threadID) {
|
||||||
var body, html, op, qp, reply, _i, _len, _ref;
|
var body, html, op, qp, reply, _i, _len, _ref;
|
||||||
|
|||||||
@ -1292,6 +1292,7 @@ updater =
|
|||||||
$.bind verbose, 'click', updater.cb.verbose
|
$.bind verbose, 'click', updater.cb.verbose
|
||||||
$.bind autoUpT, 'click', updater.cb.autoUpdate
|
$.bind autoUpT, 'click', updater.cb.autoUpdate
|
||||||
$.bind interva, 'change', updater.cb.interval
|
$.bind interva, 'change', updater.cb.interval
|
||||||
|
$.bind interva, 'change', $.cb.value
|
||||||
$.bind updNow, 'click', updater.updateNow
|
$.bind updNow, 'click', updater.updateNow
|
||||||
|
|
||||||
updater.count = $ '#count', dialog
|
updater.count = $ '#count', dialog
|
||||||
@ -1319,7 +1320,6 @@ updater =
|
|||||||
window.clearInterval updater.intervalID
|
window.clearInterval updater.intervalID
|
||||||
interval: ->
|
interval: ->
|
||||||
updater.interval = @value = @value.match(/\d+/)[0]
|
updater.interval = @value = @value.match(/\d+/)[0]
|
||||||
$.cb.value.call @
|
|
||||||
update: ->
|
update: ->
|
||||||
if @status is 404
|
if @status is 404
|
||||||
updater.timer.textContent = ''
|
updater.timer.textContent = ''
|
||||||
@ -1663,6 +1663,7 @@ quotePreview =
|
|||||||
$.bind quote, 'mouseover', quotePreview.mouseover
|
$.bind quote, 'mouseover', quotePreview.mouseover
|
||||||
$.bind quote, 'mousemove', ui.hover
|
$.bind quote, 'mousemove', ui.hover
|
||||||
$.bind quote, 'mouseout', quotePreview.mouseout
|
$.bind quote, 'mouseout', quotePreview.mouseout
|
||||||
|
$.bind quote, 'msoueout', ui.hoverend
|
||||||
mouseover: (e) ->
|
mouseover: (e) ->
|
||||||
qp = ui.el = $.el 'div',
|
qp = ui.el = $.el 'div',
|
||||||
id: 'qp'
|
id: 'qp'
|
||||||
@ -1684,7 +1685,6 @@ quotePreview =
|
|||||||
$.cache @pathname, (-> quotePreview.parse @, id, threadID)
|
$.cache @pathname, (-> quotePreview.parse @, id, threadID)
|
||||||
mouseout: ->
|
mouseout: ->
|
||||||
$.removeClass el, 'qphl' if el = d.getElementById @hash[1..]
|
$.removeClass el, 'qphl' if el = d.getElementById @hash[1..]
|
||||||
ui.hoverend()
|
|
||||||
parse: (req, id, threadID) ->
|
parse: (req, id, threadID) ->
|
||||||
return unless (qp = ui.el) and (qp.innerHTML is "Loading #{id}...")
|
return unless (qp = ui.el) and (qp.innerHTML is "Loading #{id}...")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user