Remove duplicate definition of i

This commit is contained in:
YuviPanda 2014-09-13 18:38:15 +01:00
parent 601cfc380f
commit f101efbd35

View File

@ -507,13 +507,11 @@ $(function() {
var direction = keys.split("+").pop(); var direction = keys.split("+").pop();
switch (direction) { switch (direction) {
case "up": case "up":
var i = Math.max(0, index - 1); channels.eq(Math.max(0, index - 1)).click();
channels.eq(i).click();
break; break;
case "down": case "down":
var i = Math.min(channels.length, index + 1); channels.eq(Math.min(channels.length, index + 1)).click();
channels.eq(i).click();
break; break;
} }
}); });