backbone-jquerymobile
backbone-jquerymobile copied to clipboard
Router.changePage() supports data-transition and data-direction
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.
This is a good commit! I just copied and pasted your changes because he still hasn't merged yet. :-/
:+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