Skip to content

Instantly share code, notes, and snippets.

@gabrielschulhof
Created September 23, 2012 19:04
Show Gist options
  • Save gabrielschulhof/3772691 to your computer and use it in GitHub Desktop.
Save gabrielschulhof/3772691 to your computer and use it in GitHub Desktop.
How to re-introduce _registerInternalEvents
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