documentcloud/backbone — pull request #2062 by bodokaiser (2013-01-02 15:07:49+00:00)
Title: add generic route event

Hello,

I often got the use case that I want to inform some object (e.g. nav view) on route changes.

Unfortunately currently it is only possible to inform that object on specific route changes even I often just want to get informed about any route change and get the triggered route as parameter.

To implement this I just added one line code which now triggers on the router a "route" event with the first parameter being the route name and the other parameters being the arguments we would have at a "route:example" event.

Regards,
Bodo