camme / jquery-router-plugin

Jquery plugin to handle routes for both hash and push state.
104 stars 47 forks source link

Handle 404's explicitly #9

Closed jaitaiwan closed 8 years ago

jaitaiwan commented 8 years ago

In the current version of the router, 404's are quietly ignored and there is not way to explicitly handle them. This pull request changes that by providing a way to hook into the router and run a callback when no route callbacks are found.

This is a backwards compatible feature addition which does not change existing implementations.