diff --git a/client/js/shout.js b/client/js/shout.js index afe135f7..4e0166b5 100644 --- a/client/js/shout.js +++ b/client/js/shout.js @@ -507,13 +507,11 @@ $(function() { var direction = keys.split("+").pop(); switch (direction) { case "up": - var i = Math.max(0, index - 1); - channels.eq(i).click(); + channels.eq(Math.max(0, index - 1)).click(); break; case "down": - var i = Math.min(channels.length, index + 1); - channels.eq(i).click(); + channels.eq(Math.min(channels.length, index + 1)).click(); break; } });