Browse files

[navigation] Re-instate $.mobile_registerInternalEvents - thanks asyr…

…af9 -- Fixes #4984, #5059
  • Loading branch information...
1 parent a01cd55 commit 4ca6df12e9cb3fee543479b5e86e18cfe48a7494 @gabrielschulhof gabrielschulhof committed Oct 2, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/jquery.mobile.navigation.js
View
5 js/jquery.mobile.navigation.js
@@ -1250,7 +1250,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 );
@@ -1552,7 +1552,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);

0 comments on commit 4ca6df1

Please sign in to comment.