make sure pop'd page is defined before using.

This commit is contained in:
scottjehl 2010-11-16 12:15:48 -05:00
parent 6603c84ef5
commit 2b226d05ce

View file

@ -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 });
}