From 5a58b82747638cb5534cdc234949581c4b6c0dd8 Mon Sep 17 00:00:00 2001 From: James Campos Date: Thu, 30 Dec 2010 09:24:07 -0800 Subject: [PATCH] fix coffeescript #997 --- 4chan_x.coffee | 2 ++ 4chan_x.js | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index a863b699a..f46b95b4d 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -489,6 +489,7 @@ keyModeNormal = (e) -> if top > 0 reply.className = 'replyhl' break + break when "K" if e.shiftKey if not g.REPLY then [root] = getThread() @@ -509,6 +510,7 @@ keyModeNormal = (e) -> if bot < height reply.className = 'replyhl' break + break when "M" if e.shiftKey $("#imageExpand").click() diff --git a/4chan_x.js b/4chan_x.js index 6fde5bac7..2fd1bed75 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -559,7 +559,7 @@ } }; keyModeNormal = function(e) { - var bot, char, hash, height, href, image, next, prev, qrLink, rect, replies, reply, root, sign, td, thread, top, watchButton, _i, _j, _len, _len2, _results, _results2; + var bot, char, hash, height, href, image, next, prev, qrLink, rect, replies, reply, root, sign, td, thread, top, watchButton, _i, _j, _len, _len2; if (e.ctrlKey || e.altKey) { return; } @@ -609,7 +609,6 @@ } } replies = $$('td.reply', root); - _results = []; for (_i = 0, _len = replies.length; _i < _len; _i++) { reply = replies[_i]; top = reply.getBoundingClientRect().top; @@ -618,8 +617,8 @@ break; } } - return _results; } + break; case "K": if (e.shiftKey) { if (!g.REPLY) { @@ -640,7 +639,6 @@ replies = $$('td.reply', root); replies.reverse(); height = d.body.clientHeight; - _results2 = []; for (_j = 0, _len2 = replies.length; _j < _len2; _j++) { reply = replies[_j]; bot = reply.getBoundingClientRect().bottom; @@ -649,8 +647,8 @@ break; } } - return _results2; } + break; case "M": if (e.shiftKey) { return $("#imageExpand").click();