PIXELFLOW :: an intergalactic discourse

Pixelflow

An Intergalactic Discourse

Backbone.js Catch Missing Routes

So Silent

You know the drill. Click button, nothing happens.

  • Is my event firing in the view?
  • Is my route triggering?

Make it so #1

By having * as a route you can catch spelling errors and other mismatched route errors. The catch an asterisk causes a regex error in the router, so we place any alpha characters after it to appease the regex gods. In this case ‘nomatch’