From f101efbd35bd78236b19dcf5f73cde45681f029f Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Sat, 13 Sep 2014 18:38:15 +0100 Subject: [PATCH] Remove duplicate definition of i --- client/js/shout.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/js/shout.js b/client/js/shout.js index afe135f..4e0166b 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; } });