You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has been suggested a few times before (an early one being #299). If you do a search though the issues for similar terms you'll see a bit more background.
It's easy enough to wrap your callbacks directly, with a plugin (i.e. backbone-route-filter), or in a base router pattern. Give it a shot and let me know if that works for you.
I wanted to execute a specific function before/after every route of a specific controller is matched, and I got here.
http://danialk.github.io/blog/2013/06/08/backbone-tips-after-and-before-methods-for-router/
The API looks clean and it does it by monkey patching 2 route callbacks. I think its worth to have this as a core feature. Comments?
The text was updated successfully, but these errors were encountered: