jquery/jquery-mobile — Issue #2725: Version change Beta3 to RC1 has broken a configuration option?
Author: jeroenvandijk
Created: 2011-10-17 12:48:31+00:00
State: open

I'm using jQuery Mobile in combination with Backbone.js. I want Backbone to be in control of the hashtag instead of JQM. In Beta3 I was able to disable the hashtag listening of JQM by just adding the following code:

$(document).bind("mobileinit", function(){
$.mobile.ajaxEnabled = false;
$.mobile.hashListeningEnabled = false;
// Undocumented flag to disable jQuery Mobile's history stuff, is also affecting the hash (http://jquerymobile.com/blog/2011/09/08/jquery-mobile-beta-3-released/)
$.mobile.pushStateEnabled = false;
});

When I moved to RC1 that wasn't enough anymore. I changed the block to the following:

$(document).bind("mobileinit", function(){
$.mobile.ajaxEnabled = false;
$.mobile.hashListeningEnabled = false;
// Undocumented flag to disable jQuery Mobile's history stuff, is also affecting the hash (http://jquerymobile.com/blog/2011/09/08/jquery-mobile-beta-3-released/)
$.mobile.pushStateEnabled = false;
$.support.pushState = false;
});

And all links that I use have the attribute "rel=external" to make JQM ignore them. I've looked into the source code of JQM but I couldn't find any new configuration options. Any ideas how I can get a cleaner solution?