From bd5afd22d5ed0b96e81b8dd866c6c6218e14ae75 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 30 May 2011 23:05:39 -0700 Subject: [PATCH] shave a line --- 4chan_x.user.js | 5 ++--- script.coffee | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index fd401f78f..19c9f6db2 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1888,10 +1888,9 @@ }, mouseout: function() { var el; - if (!(el = d.getElementById(this.hash.slice(1)))) { - return; + if (el = d.getElementById(this.hash.slice(1))) { + return $.removeClass(el, 'qphl'); } - return $.removeClass(el, 'qphl'); }, mouseover: function(e) { var el, id, qp, quote, replyID, threadID, _i, _len, _ref; diff --git a/script.coffee b/script.coffee index 228996f73..6ffd2ebcd 100644 --- a/script.coffee +++ b/script.coffee @@ -1485,8 +1485,7 @@ quotePreview = $.bind quote, 'mouseout', ui.hoverend $.bind quote, 'mouseout', quotePreview.mouseout mouseout: -> - return unless el = d.getElementById @hash[1..] - $.removeClass el, 'qphl' + $.removeClass el, 'qphl' if el = d.getElementById @hash[1..] mouseover: (e) -> id = @hash[1..] qp = $ '#qp'