{"issue":{"milestone":null,"user":{"id":11275,"login":"mnichols","url":"https://api.github.com/users/mnichols","gravatar_id":"4df316e9f36c0c3ffd29e11fe07f343c","avatar_url":"https://secure.gravatar.com/avatar/4df316e9f36c0c3ffd29e11fe07f343c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"title":"Eventing","created_at":"2011-12-15T21:24:39Z","labels":[],"updated_at":"2011-12-20T13:03:33Z","state":"closed","id":2572765,"pull_request":{"patch_url":"https://github.com/documentcloud/backbone/pull/791.patch","html_url":"https://github.com/documentcloud/backbone/pull/791","diff_url":"https://github.com/documentcloud/backbone/pull/791.diff"},"html_url":"https://github.com/documentcloud/backbone/issues/791","closed_at":"2011-12-19T16:08:04Z","body":"This patch (with test) adds a `navigate:{routeName}` to the Router which is triggered regardless of whether `{trigger:true}` is passed to `myRouter.navigate()` or not. \r\n\r\nI needed a unified way to respond to changes in the url and since `route:{routeName}` is only fired when the callback is invoked (ie, when landing on the page or backbuttoning) there wasn't an easy way to do this.","number":791,"url":"https://api.github.com/repos/documentcloud/backbone/issues/791","comments":3,"assignee":null},"comment":{"user":{"id":4732,"login":"jashkenas","url":"https://api.github.com/users/jashkenas","gravatar_id":"32652ed5b8fbd2ecdb1c78e9ac567b4b","avatar_url":"https://secure.gravatar.com/avatar/32652ed5b8fbd2ecdb1c78e9ac567b4b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-20T13:03:33Z","updated_at":"2011-12-20T13:03:33Z","id":3218474,"body":"Can't you simply always pass `trigger: true` if that's the behavior you desire?\r\n\r\nFull disclosure here -- the **preferred** thing to do in a Backbone app is to never pass `trigger: true`. Instead of serializing your state changes through a URL, treat `.navigate` as simply a way to drop a bookmark from time to time -- and call your state change function yourself.","url":"https://api.github.com/repos/documentcloud/backbone/issues/comments/3218474"},"action":"created"}