Remove duplicate definition of i
This commit is contained in:
parent
601cfc380f
commit
f101efbd35
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user