mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-25 00:24:44 +00:00
make sure pop'd page is defined before using.
This commit is contained in:
parent
6603c84ef5
commit
2b226d05ce
1 changed files with 4 additions and 1 deletions
|
|
@ -337,7 +337,10 @@
|
|||
|
||||
// if the new href is the same as the previous one
|
||||
if ( back ) {
|
||||
transition = urlStack.pop().transition;
|
||||
var pop = urlStack.pop();
|
||||
if( pop ){
|
||||
transition = pop.transition;
|
||||
}
|
||||
} else {
|
||||
urlStack.push({ url: url, transition: transition });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue