From 50e4c61bb7bb90a09112bd7a1caddddbbd47c2e7 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 20 Jul 2011 22:08:47 -0700 Subject: [PATCH] shave a line --- 4chan_x.user.js | 6 ++---- script.coffee | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 1164e6cdf..28811aba3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2455,13 +2455,11 @@ }); }, mouseover: function(e) { - var img; - img = $.el('img', { + ui.el = $.el('img', { id: 'iHover', src: this.parentNode.href }); - ui.el = img; - return $.append(d.body, img); + return $.append(d.body, ui.el); } }; imgPreloading = { diff --git a/script.coffee b/script.coffee index a00936844..e036105ef 100644 --- a/script.coffee +++ b/script.coffee @@ -1854,11 +1854,10 @@ imgHover = $.bind thumb, 'mousemove', ui.hover $.bind thumb, 'mouseout', ui.hoverend mouseover: (e) -> - img = $.el 'img' + ui.el = $.el 'img' id: 'iHover' src: @parentNode.href - ui.el = img - $.append d.body, img + $.append d.body, ui.el imgPreloading = init: ->