Cleanup / local var in hotkeys

(imported from commit 8df3d84495d0d50b0987037dceb8b16023866119)
This commit is contained in:
Keegan McAllister 2012-09-05 11:07:28 -04:00
parent 49704b84f3
commit 7cb3c05b40
1 changed files with 1 additions and 2 deletions

View File

@ -129,8 +129,7 @@ $(document).keydown(function(event) {
if (event.keyCode == 38 || event.keyCode == 40) { // down or up arrow
p = $("#selected");
tr = $(p).closest("tr");
var tr = $("#selected").closest("tr");
if (event.keyCode == 40) { // down arrow
// There are probably more verbose but more efficient ways to do this.
next_zephyr = tr.nextAll(":not(:hidden):first");