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:
scottjehl 2011-08-02 18:22:55 -04:00
parent d42db4d4ee
commit 4c01267306

View file

@ -48,8 +48,8 @@ function setDefaultTransition(){
$.mobile.defaultPageTransition = trans;
}
//set default documentation
$( document ).bind( "mobileinit", setDefaultTransition );
$(function(){
setDefaultTransition();
$( window ).bind( "throttledresize", setDefaultTransition );
});