call instead of bind
This commit is contained in:
parent
4ba38e9d3b
commit
ff5de89f64
@ -2013,7 +2013,6 @@
|
|||||||
$.bind(link, 'mouseover', quotePreview.mouseover);
|
$.bind(link, 'mouseover', quotePreview.mouseover);
|
||||||
$.bind(link, 'mousemove', ui.hover);
|
$.bind(link, 'mousemove', ui.hover);
|
||||||
$.bind(link, 'mouseout', quotePreview.mouseout);
|
$.bind(link, 'mouseout', quotePreview.mouseout);
|
||||||
$.bind(link, 'mouseout', ui.hoverend);
|
|
||||||
}
|
}
|
||||||
if (quoteBacklink.qi) {
|
if (quoteBacklink.qi) {
|
||||||
$.bind(link, 'click', quoteInline.toggle);
|
$.bind(link, 'click', quoteInline.toggle);
|
||||||
@ -2146,8 +2145,7 @@
|
|||||||
}
|
}
|
||||||
$.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);
|
_results.push($.bind(quote, 'mouseout', quotePreview.mouseout));
|
||||||
_results.push($.bind(quote, 'mouseout', ui.hoverend));
|
|
||||||
}
|
}
|
||||||
return _results;
|
return _results;
|
||||||
});
|
});
|
||||||
@ -2186,8 +2184,9 @@
|
|||||||
mouseout: function() {
|
mouseout: function() {
|
||||||
var el;
|
var el;
|
||||||
if (el = d.getElementById(this.hash.slice(1))) {
|
if (el = d.getElementById(this.hash.slice(1))) {
|
||||||
return $.removeClass(el, 'qphl');
|
$.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;
|
||||||
|
|||||||
@ -1588,7 +1588,6 @@ quoteBacklink =
|
|||||||
$.bind link, 'mouseover', quotePreview.mouseover
|
$.bind link, 'mouseover', quotePreview.mouseover
|
||||||
$.bind link, 'mousemove', ui.hover
|
$.bind link, 'mousemove', ui.hover
|
||||||
$.bind link, 'mouseout', quotePreview.mouseout
|
$.bind link, 'mouseout', quotePreview.mouseout
|
||||||
$.bind link, 'mouseout', ui.hoverend
|
|
||||||
if quoteBacklink.qi
|
if quoteBacklink.qi
|
||||||
$.bind link, 'click', quoteInline.toggle
|
$.bind link, 'click', quoteInline.toggle
|
||||||
unless container = $ '.container', el
|
unless container = $ '.container', el
|
||||||
@ -1670,7 +1669,6 @@ 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, 'mouseout', ui.hoverend
|
|
||||||
mouseover: (e) ->
|
mouseover: (e) ->
|
||||||
qp = ui.el = $.el 'div',
|
qp = ui.el = $.el 'div',
|
||||||
id: 'qp'
|
id: 'qp'
|
||||||
@ -1692,6 +1690,7 @@ 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