mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-05 05:04:46 +00:00
Moving this call to setDefaultTransition to run at DOM ready, because calling it earlier triggers an error in jQuery core, based on logic in dimensions.js that assumes document.body is defined. I've added a pull request to fix the issue in jQuery core, but for our purposes, this change allows us to work without the fix.
This commit is contained in:
parent
d42db4d4ee
commit
4c01267306
1 changed files with 2 additions and 2 deletions
|
|
@ -48,8 +48,8 @@ function setDefaultTransition(){
|
|||
$.mobile.defaultPageTransition = trans;
|
||||
}
|
||||
|
||||
//set default documentation
|
||||
$( document ).bind( "mobileinit", setDefaultTransition );
|
||||
|
||||
$(function(){
|
||||
setDefaultTransition();
|
||||
$( window ).bind( "throttledresize", setDefaultTransition );
|
||||
});
|
||||
Loading…
Reference in a new issue