Skip to content

Commit 02cd462

Browse files
AbijeetNikerabbit
authored andcommitted
jquery.uls.lcd: Add null check for navigationIndex for up navigation
1 parent 36ca765 commit 02cd462

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jquery.uls.lcd.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@
134134
return;
135135
}
136136

137+
if ( this.navigationIndex === null ) {
138+
return;
139+
}
140+
137141
this.navigationIndex--;
138142
this.highlightLanguageOption();
139143
},

0 commit comments

Comments
 (0)