azicchetti/jquerymobile-router

How does one access the data object resultant from a $.mobile.navigate('#target',{}) invocation

Opened this issue · 1 comments

From jQuery land I initiate a navigation using $.mobile.navigate('#target',{...}), but I never see my data object appear within the context of my route handler.
My router catches the bC event and routes correctly but the data object of the event is empty? I am left appending a query string to the targetURL.

Hi,
I think we cannot access the data object from pagebeforechange handlers when triggered by $.mobile.navigate().

I guess that only window's "navigate" handlers may use the data object passed as the second argument to $.mobile.navigate().