Navigating back is broken with autoInitializePage = false (Cannot call method 'trigger' of undefined) #5284
Comments
We're currently using the following monkey-patch for this:
|
I've been experiencing the exact same problem |
+1 - Any news on this? |
Switching to the unminified latest I see an issue with the loader widget not with I'll take a look today and hopefully we can work out something sane and quick for the first patch release. |
The broader issue is that the popstate binding is firing "too early" when returning to the page. I'm going to have to work on this one for a bit. That fits with your hack since you're just killing the navigation when the pageContainer hasn't been created. |
There's a fundamental issue with delaying the page initialization and supporting popstate. The popstate that's fired when returning from an external URL contains information about how the page should be initialized, so delaying the initialization means we need to store that info until it happens. More soon. |
Getting same issue on JQUERY Mobile 1.4.0 |
When navigating away from a jQueryMobile application and then back creates an exception when that application has set
$.mobile.autoInitializePage = false
and calls$.mobile.initializePage()
by itself.Steps to reproduce:
Expected result:
See meaningless debug output
Actual result:
Uncaught TypeError: Cannot call method 'trigger' of undefined
This stems from the fact that
$.mobile.pageContainer
is undefined beforeinitializePage
The text was updated successfully, but these errors were encountered: