Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added _registerInternalEvents naming to navreadyDeffered to allow ove…

…rriding
  • Loading branch information...
commit 564e05be5f80e0327efeaf33b9420c2407edfc96 1 parent ce06297
@asyraf9 authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 js/jquery.mobile.navigation.js
View
7 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,10 @@ define( [
$( document ).bind( "pageshow", resetActivePageHeight );
$( window ).bind( "throttledresize", resetActivePageHeight );
- });//navreadyDeferred done callback
+ };//navreadyDeferred done callback
+ $( window.document ).bind('mobileinit', function() {
+ $.mobile.navreadyDeferred.done($.mobile._registerInternalEvents())
+ });
})( jQuery );
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
Please sign in to comment.
Something went wrong with that request. Please try again.