diff --git a/4chan_x.user.js b/4chan_x.user.js index 5e7a91ffa..d1b6afe23 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2043,6 +2043,19 @@ toggle: function(e) { var el, hidden, id, inline, inlined, pathname, root, table, threadID, _i, _len, _ref; e.preventDefault(); + /* + https://bugzilla.mozilla.org/show_bug.cgi?id=674955 + `mouseout` does not fire when element removed + RESOLVED INVALID + + inline a post, then hover over an inlined quote / image, then remove + the inlined post by clicking `enter` on the still-focused link - the + mouseout event doesn't fire, and the quote preview / image hover remains. + + we can prevent this sequence by `blur`-ing the clicked links. chrome + doesn't focus clicked links anyway. + */ + this.blur(); id = this.hash.slice(1); if (table = $("#i" + id, $.x('ancestor::td[1]', this))) { $.rm(table); diff --git a/script.coffee b/script.coffee index ca5868da6..90d29f708 100644 --- a/script.coffee +++ b/script.coffee @@ -1587,6 +1587,19 @@ quoteInline = $.bind quote, 'click', quoteInline.toggle toggle: (e) -> e.preventDefault() + ### + https://bugzilla.mozilla.org/show_bug.cgi?id=674955 + `mouseout` does not fire when element removed + RESOLVED INVALID + + inline a post, then hover over an inlined quote / image, then remove + the inlined post by clicking `enter` on the still-focused link - the + mouseout event doesn't fire, and the quote preview / image hover remains. + + we can prevent this sequence by `blur`-ing the clicked links. chrome + doesn't focus clicked links anyway. + ### + @blur() id = @hash[1..] if table = $ "#i#{id}", $.x 'ancestor::td[1]', @ $.rm table