Skip to content

Commit 4c01267

Browse files
author
scottjehl
committed
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.
1 parent d42db4d commit 4c01267

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/_assets/js/jqm-docs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ function setDefaultTransition(){
4848
$.mobile.defaultPageTransition = trans;
4949
}
5050

51-
//set default documentation
52-
$( document ).bind( "mobileinit", setDefaultTransition );
51+
5352
$(function(){
53+
setDefaultTransition();
5454
$( window ).bind( "throttledresize", setDefaultTransition );
5555
});

0 commit comments

Comments
 (0)