Created
November 3, 2011 09:13
-
-
Save carlwoodward/1336106 to your computer and use it in GitHub Desktop.
Push state codes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('a.pushstate').live 'click', (event) -> | |
event.preventDefault() | |
pushStateRouter.navigate $(this).attr('href'), true | |
Backbone.history.start pushState: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment