Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
[navigation] Re-instate $.mobile_registerInternalEvents - thanks asyr…
Browse files Browse the repository at this point in the history
…af9 -- Fixes #4984, #5059

Conflicts:

	js/jquery.mobile.navigation.js
  • Loading branch information
Gabriel Schulhof committed Oct 2, 2012
1 parent e94c953 commit 9de514c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/jquery.mobile.navigation.js
Expand Up @@ -1241,7 +1241,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 );
Expand Down Expand Up @@ -1526,7 +1526,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);
Expand Down

0 comments on commit 9de514c

Please sign in to comment.