Skip to content

Commit 2b226d0

Browse files
author
scottjehl
committed
make sure pop'd page is defined before using.
1 parent 6603c84 commit 2b226d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/jquery.mobile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,10 @@
337337

338338
// if the new href is the same as the previous one
339339
if ( back ) {
340-
transition = urlStack.pop().transition;
340+
var pop = urlStack.pop();
341+
if( pop ){
342+
transition = pop.transition;
343+
}
341344
} else {
342345
urlStack.push({ url: url, transition: transition });
343346
}

0 commit comments

Comments
 (0)