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

Router.changePage() supports data-transition and data-direction #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonnyreeves
Copy link

I've modified the changePage() method to parse the attributes of the last anchor tag (a) which the user clicked and extract the data-transition and data-direction values so they can be passed to $.mobile.changePage. This allows users to specify these values in their HTML markup.

…oth the transition and direction data attributes so we can override the default behaviour.
@mlerner
Copy link

mlerner commented Nov 27, 2012

This is a good commit! I just copied and pasted your changes because he still hasn't merged yet. :-/

@m90
Copy link

m90 commented Apr 3, 2013

👍 on a side note: apparently the syntax for _.extend has changed so you need to swap the arguments to _.extend(destination, *sources) now : http://underscorejs.org/#extend

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

Successfully merging this pull request may close these issues.

3 participants