Single mouseout binding.

This commit is contained in:
Nicolas Stepien 2011-07-19 23:43:33 +02:00
parent d430055abb
commit 9416f74ae3
2 changed files with 3 additions and 5 deletions

View File

@ -2006,7 +2006,6 @@
if ($.config('Quote Preview')) {
$.bind(link, 'mouseover', quotePreview.mouseover);
$.bind(link, 'mousemove', ui.hover);
$.bind(link, 'mouseout', ui.hoverend);
$.bind(link, 'mouseout', quotePreview.mouseout);
}
if ($.config('Quote Inline')) {
@ -2142,7 +2141,6 @@
}
$.bind(quote, 'mouseover', quotePreview.mouseover);
$.bind(quote, 'mousemove', ui.hover);
$.bind(quote, 'mouseout', ui.hoverend);
_results.push($.bind(quote, 'mouseout', quotePreview.mouseout));
}
return _results;
@ -2150,8 +2148,9 @@
mouseout: function() {
var el;
if (el = d.getElementById(this.hash.slice(1))) {
return $.removeClass(el, 'qphl');
$.removeClass(el, 'qphl');
}
return ui.hoverend();
},
mouseover: function(e) {
var el, id, qp, quote, replyID, threadID, _i, _len, _ref;

View File

@ -1580,7 +1580,6 @@ quoteBacklink =
if $.config 'Quote Preview'
$.bind link, 'mouseover', quotePreview.mouseover
$.bind link, 'mousemove', ui.hover
$.bind link, 'mouseout', ui.hoverend
$.bind link, 'mouseout', quotePreview.mouseout
if $.config 'Quote Inline'
$.bind link, 'click', quoteInline.toggle
@ -1663,10 +1662,10 @@ quotePreview =
continue unless quote.hash
$.bind quote, 'mouseover', quotePreview.mouseover
$.bind quote, 'mousemove', ui.hover
$.bind quote, 'mouseout', ui.hoverend
$.bind quote, 'mouseout', quotePreview.mouseout
mouseout: ->
$.removeClass el, 'qphl' if el = d.getElementById @hash[1..]
ui.hoverend()
mouseover: (e) ->
id = @hash[1..]
qp = $ '#qp'