Skip to content

Commit e09d89d

Browse files
committed
Update jquery.fullPage.js
invalid test for undefined slide value: missing 'typeof' (issue alvarotrigo#354)
1 parent 92055f1 commit e09d89d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.fullPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@
565565
destiny = $('.section').eq( (section -1) );
566566
}
567567

568-
if (slide !== 'undefined'){
568+
if (typeof slide !== 'undefined'){
569569
scrollPageAndSlide(section, slide);
570570
}else if(destiny.length > 0){
571571
scrollPage(destiny);

0 commit comments

Comments
 (0)