Created
September 23, 2012 19:04
-
-
Save gabrielschulhof/3772691 to your computer and use it in GitHub Desktop.
How to re-introduce _registerInternalEvents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js | |
index ae18def..b561cf9 100644 | |
--- a/js/jquery.mobile.navigation.js | |
+++ b/js/jquery.mobile.navigation.js | |
@@ -1243,7 +1243,7 @@ define( [ | |
//The following event bindings should be bound after mobileinit has been triggered | |
//the following deferred is resolved in the init file | |
$.mobile.navreadyDeferred = $.Deferred(); | |
- $.mobile.navreadyDeferred.done(function() { | |
+ $.mobile._registerInternalEvents = function() { | |
//bind to form submit events, handle with Ajax | |
$( document ).delegate( "form", "submit", function( event ) { | |
var $this = $( this ); | |
@@ -1545,7 +1545,8 @@ define( [ | |
$( document ).bind( "pageshow", resetActivePageHeight ); | |
$( window ).bind( "throttledresize", resetActivePageHeight ); | |
- });//navreadyDeferred done callback | |
+ };//navreadyDeferred done callback | |
+ $.mobile.navreadyDeferred.done( function() { $.mobile._registerInternalEvents(); } ); | |
})( jQuery ); | |
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment