From cd9cd822922b7a6489cf503cde26a8354fa1e00b Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 28 Oct 2011 00:15:38 +0200 Subject: [PATCH] Woops, don't copypaste. --- 4chan_x.user.js | 6 ++---- script.coffee | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index cedc46ccd..129a2302b 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2810,10 +2810,8 @@ return imgPreloading.preload(thumb); }, preload: function(thumb) { - var el, src; - src = thumb.parentNode.href; - return el = $.el('img', { - src: src + return $.el('img', { + src: thumb.parentNode.href }); } }; diff --git a/script.coffee b/script.coffee index 5042c5fe4..ff3c6603a 100644 --- a/script.coffee +++ b/script.coffee @@ -2065,8 +2065,7 @@ imgPreloading = return unless imgPreloading.on and thumb = $ 'img[md5]:last-child', root imgPreloading.preload thumb preload: (thumb) -> - src = thumb.parentNode.href - el = $.el 'img', { src } + $.el 'img', src: thumb.parentNode.href imgGif = init: ->