When following the links of `<a href="#page" >`, I come as expected to the
page "#page" properly processed. But once there, if I click a `refresh`, which is indirectly reprocessed by the same router rule, I end up with the following error:
> Uncaught TypeError: Cannot call method 'trigger' of undefined
I downloaded the jquery mobile development code and observed this:
> // JQM1.1.2 - Line #3772 Show a specific page in the page container.
> // Let listeners know we're about to change the current page.
> mpc.trigger( pbcEvent, triggerData ); // Line #3794
The `Uncaught TypeError` is caused by Line #3794, because `mpc` is `undefined`.
So, from JQM, In the Chrome inspector, I can see also that `settings.fromPage` is `undefined` and `settings.pageContainer` is `undefined`. I kind of imagine, that JQM cannot make an assumption on the fromPage, and therefore, cannot proceed on my refresh. All the options I have tried on the $mobile.changePage() have not succeed. I am out of ideas.
Any help will be appreciated.
UPDATE: I have cut all unnecessary code and left the bug kept on a live website: apartindex.com. Hope can help somebody look into it ? To make the problem appears, just update on your browser until the javascript error appears.