Skip to content

Commit 85f30f6

Browse files
author
ehynds
committed
scope a leaky var. fixes #403
1 parent 9824355 commit 85f30f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
var moveToLast = which === 38 || which === 37;
448448

449449
// select the first li that isn't an optgroup label / disabled
450-
$next = $start.parent()[moveToLast ? 'prevAll' : 'nextAll']('li:not(.ui-multiselect-disabled, .ui-multiselect-optgroup-label)')[ moveToLast ? 'last' : 'first']();
450+
var $next = $start.parent()[moveToLast ? 'prevAll' : 'nextAll']('li:not(.ui-multiselect-disabled, .ui-multiselect-optgroup-label)')[ moveToLast ? 'last' : 'first']();
451451

452452
// if at the first/last element
453453
if(!$next.length) {

0 commit comments

Comments
 (0)