Skip to content

Instantly share code, notes, and snippets.

@carlwoodward
Created November 3, 2011 09:13
Show Gist options
  • Save carlwoodward/1336106 to your computer and use it in GitHub Desktop.
Save carlwoodward/1336106 to your computer and use it in GitHub Desktop.
Push state codes
$('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