mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-28 18:04:46 +00:00
Prevents “undefined is null or not an object” error in IE, where .scrollTop() was being called before the body was ready.
This commit is contained in:
parent
078d317e63
commit
dec502d2c8
1 changed files with 1 additions and 1 deletions
|
|
@ -424,7 +424,7 @@
|
|||
var active = $.mobile.urlHistory.getActive();
|
||||
|
||||
if( active ) {
|
||||
var lastScroll = scrollElem.scrollTop();
|
||||
var lastScroll = scrollElem && scrollElem.scrollTop();
|
||||
|
||||
// Set active page's lastScroll prop.
|
||||
// If the location we're scrolling to is less than minScrollBack, let it go.
|
||||
|
|
|
|||
Loading…
Reference in a new issue