Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
$.mobile.changePage ignores pageContainer option in JQM 1.4.0RC1 #6691
The refactored (deprecated) $.mobile.changePage method in JQM 1.4, no longer pays attention to the pageContainer specified via options. Thus, the following call will ignore the specified pageContainer:
The bug is in jquery.mobile.navigation.js:
Current (wrong) implementation:
This could be fixed like so:
Sorry, I don't have a test page for this (not easy to simplify our code...)
Deprecation simply means that the feature will likely be removed in the future - you should be able to expect for it to still work correctly in the current version.
It's unfortunately that API documentation has not been updated for 1.4 - makes it kind of hard to decide what's a bug v.s. unsupported feature that has not been removed yet.
BTW, the workaround for $.mobile.changePage() is to call
@nonplus is correct - the pageContainer option of the $.mobile.changePage function's options hash should be honoured during the deprecation period. Nevertheless, you can, of course, use the non-deprecated code, wherein you would call .pagecontainer( "change", ... ) on your pagecontainer widget of choice.