Highlighting current navigation state in Backbone.js application
问题 I want to highlight the current navigation state. Like if the hashchange is #home , I want to style the 'Home' menu link differently and similarly other links. Backbone.js fires individual events like route:home ,... route:some-other when the #home and other links are clicked. I could not see any common event that will be fired for every hashchange. With this I m required to write the state highlight logic by binding to all the route events, which I think is not good solution. So, I've