baseprime / grapnel

The smallest JavaScript router with named parameters, HTML5 pushState, and middleware support
http://grapnel.js.org
467 stars 40 forks source link

Ability to cancel navigation from change event #10

Closed lazd closed 10 years ago

lazd commented 10 years ago

It would be useful to be able to stop navigation using something like preventDefault or by returning false in listeners to the change event.

A few use cases:

baseprime commented 10 years ago

Good idea! Added this to the latest release!