From 77719c2126c2a8c4b9774460b9ad4249478e6ed8 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 8 Dec 2010 21:22:21 -0800 Subject: [PATCH] tweak --- 4chan_x.coffee | 3 +-- 4chan_x.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index 27d38c4b0..fbb68518a 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -378,8 +378,7 @@ keydown = (e) -> g.char = char keypress = (e) -> - char = g.char - return unless char + return unless char = g.char hash = location.hash count = g.count if char in '1234567890' diff --git a/4chan_x.js b/4chan_x.js index 12f7ff522..d788965c6 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -485,8 +485,7 @@ }; keypress = function(e) { var bot, char, count, hash, height, href, i, img, next, prev, qrLink, rect, replies, reply, td, temp, thread, top, _i, _j, _len, _len2, _len3, _len4, _ref, _ref2; - char = g.char; - if (!char) { + if (!(char = g.char)) { return; } hash = location.hash;