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

Commit 9de514c

Browse files
author
Gabriel Schulhof
committed
[navigation] Re-instate $.mobile_registerInternalEvents - thanks asyraf9 -- Fixes #4984, #5059
Conflicts: js/jquery.mobile.navigation.js
1 parent e94c953 commit 9de514c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/jquery.mobile.navigation.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ define( [
12411241
//The following event bindings should be bound after mobileinit has been triggered
12421242
//the following deferred is resolved in the init file
12431243
$.mobile.navreadyDeferred = $.Deferred();
1244-
$.mobile.navreadyDeferred.done( function(){
1244+
$.mobile._registerInternalEvents = function() {
12451245
//bind to form submit events, handle with Ajax
12461246
$( document ).delegate( "form", "submit", function( event ) {
12471247
var $this = $( this );
@@ -1526,7 +1526,8 @@ define( [
15261526
$( document ).bind( "pageshow", resetActivePageHeight );
15271527
$( window ).bind( "throttledresize", resetActivePageHeight );
15281528

1529-
});//navreadyDeferred done callback
1529+
};//navreadyDeferred done callback
1530+
$.mobile.navreadyDeferred.done( function() { $.mobile._registerInternalEvents(); } );
15301531

15311532
})( jQuery );
15321533
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);

0 commit comments

Comments
 (0)