Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mccainz opened this issue Mar 7, 2014 · 1 comment

Comments

@mccainz
Copy link

mccainz commented Mar 7, 2014

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.

@azicchetti
Copy link
Owner

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().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants