call instead of bind
This commit is contained in:
parent
4ba38e9d3b
commit
ff5de89f64
@ -2013,7 +2013,6 @@
|
||||
$.bind(link, 'mouseover', quotePreview.mouseover);
|
||||
$.bind(link, 'mousemove', ui.hover);
|
||||
$.bind(link, 'mouseout', quotePreview.mouseout);
|
||||
$.bind(link, 'mouseout', ui.hoverend);
|
||||
}
|
||||
if (quoteBacklink.qi) {
|
||||
$.bind(link, 'click', quoteInline.toggle);
|
||||
@ -2146,8 +2145,7 @@
|
||||
}
|
||||
$.bind(quote, 'mouseover', quotePreview.mouseover);
|
||||
$.bind(quote, 'mousemove', ui.hover);
|
||||
$.bind(quote, 'mouseout', quotePreview.mouseout);
|
||||
_results.push($.bind(quote, 'mouseout', ui.hoverend));
|
||||
_results.push($.bind(quote, 'mouseout', quotePreview.mouseout));
|
||||
}
|
||||
return _results;
|
||||
});
|
||||
@ -2186,8 +2184,9 @@
|
||||
mouseout: function() {
|
||||
var el;
|
||||
if (el = d.getElementById(this.hash.slice(1))) {
|
||||
return $.removeClass(el, 'qphl');
|
||||
$.removeClass(el, 'qphl');
|
||||
}
|
||||
return ui.hoverend();
|
||||
},
|
||||
parse: function(req, id, threadID) {
|
||||
var body, html, op, qp, reply, _i, _len, _ref;
|
||||
|
||||
@ -1588,7 +1588,6 @@ quoteBacklink =
|
||||
$.bind link, 'mouseover', quotePreview.mouseover
|
||||
$.bind link, 'mousemove', ui.hover
|
||||
$.bind link, 'mouseout', quotePreview.mouseout
|
||||
$.bind link, 'mouseout', ui.hoverend
|
||||
if quoteBacklink.qi
|
||||
$.bind link, 'click', quoteInline.toggle
|
||||
unless container = $ '.container', el
|
||||
@ -1670,7 +1669,6 @@ quotePreview =
|
||||
$.bind quote, 'mouseover', quotePreview.mouseover
|
||||
$.bind quote, 'mousemove', ui.hover
|
||||
$.bind quote, 'mouseout', quotePreview.mouseout
|
||||
$.bind quote, 'mouseout', ui.hoverend
|
||||
mouseover: (e) ->
|
||||
qp = ui.el = $.el 'div',
|
||||
id: 'qp'
|
||||
@ -1692,6 +1690,7 @@ quotePreview =
|
||||
$.cache @pathname, (-> quotePreview.parse @, id, threadID)
|
||||
mouseout: ->
|
||||
$.removeClass el, 'qphl' if el = d.getElementById @hash[1..]
|
||||
ui.hoverend()
|
||||
parse: (req, id, threadID) ->
|
||||
return unless (qp = ui.el) and (qp.innerHTML is "Loading #{id}...")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user