Last active
December 31, 2015 01:29
-
-
Save zeroeth/7914290 to your computer and use it in GitHub Desktop.
Backbone.js missing route catch all
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
| Backbone.Router.extend({ | |
| routes: { | |
| "": "showWelcome", | |
| "other": "showOther", | |
| "*nomatch": "notFound", | |
| }, | |
| notFound: function() { | |
| console.info("Route not found:", arguments); | |
| }, | |
| /* ... */ | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment