Skip to content

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

Open
jonnyreeves wants to merge 1 commit intoccoenraets:masterfrom
jonnyreeves:patch-1
Open

Router.changePage() supports data-transition and data-direction#1
jonnyreeves wants to merge 1 commit intoccoenraets:masterfrom
jonnyreeves:patch-1

Conversation

@jonnyreeves
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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