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
class MyApp.Router extends Backbone.Router | |
hasPushState: window.history and window.history.pushState | |
# Override the navigate function to remove Backbone's #hash fallback for | |
# non-pushState browsers. Instead we just navigate to the new location using | |
# window.location | |
navigate: (fragment, trigger) -> | |
if @hasPushState | |
super(arguments...) |