diff --git a/4chan_x.user.js b/4chan_x.user.js index ee37e74b8..8b2917283 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -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; diff --git a/script.coffee b/script.coffee index bad4f1ce8..121aea3bf 100644 --- a/script.coffee +++ b/script.coffee @@ -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'