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();
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;
}
});