Permalink
Browse files

added _registerInternalEvents naming to navreadyDeffered to allow ove…

…rriding
  • Loading branch information...
1 parent ce06297 commit 564e05be5f80e0327efeaf33b9420c2407edfc96 @asyraf9 committed Sep 21, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 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);

0 comments on commit 564e05b

Please sign in to comment.