backbone-jquerymobile icon indicating copy to clipboard operation
backbone-jquerymobile copied to clipboard

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

Open jonnyreeves opened this issue 12 years ago • 2 comments

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.

jonnyreeves avatar Jun 19 '12 10:06 jonnyreeves

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

mlerner avatar Nov 27 '12 00:11 mlerner

:+1: 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

m90 avatar Apr 03 '13 07:04 m90