backbone.controller
backbone.controller copied to clipboard
onBeforeRoute as event
Maybe better if onBeforeRoute will be as event, not as option? Just for more flexibility.
It can be done both - event and option. Would you like to add more details how do you want to use it with event?
For example I need attach function to both events (before and after route), then I can do like this
controller.on 'before-route after-route', ->
i see, now i am a bit busy with release. So i will implement it a bit later or if you want just send pull request :)