diff --git a/docs/_assets/js/jqm-docs.js b/docs/_assets/js/jqm-docs.js index a8393764..9cdfca68 100644 --- a/docs/_assets/js/jqm-docs.js +++ b/docs/_assets/js/jqm-docs.js @@ -1,4 +1,6 @@ //set up the theme switcher on the homepage + +define( [ "jquery.mobile" ], function() { $('div').live('pagecreate',function(event){ if( !$(this).is('.ui-dialog')){ var appendEl = $(this).find('.ui-footer:last'); @@ -99,4 +101,4 @@ if ( location.protocol.substr(0,4) === 'file' || }); }); } - +}); diff --git a/js/jquery.mobile.docs.js b/js/jquery.mobile.docs.js index 716dcc5d..f1babd92 100644 --- a/js/jquery.mobile.docs.js +++ b/js/jquery.mobile.docs.js @@ -1,3 +1 @@ -require( [ "jquery.mobile" ], function() { - require( [ "../docs/_assets/js/jqm-docs" ] ); -}); \ No newline at end of file +define( [ "../docs/_assets/js/jqm-docs" ] );