{"pull_request":{"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/e592bd1326b1e80188ed4c0bf26b9f75?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e592bd1326b1e80188ed4c0bf26b9f75","url":"https://api.github.com/users/derickbailey","login":"derickbailey","id":75190},"merged_by":null,"deletions":1,"updated_at":"2011-10-29T19:35:21Z","comments":13,"closed_at":"2011-10-29T19:35:21Z","base":{"ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/984df9bc1103ee70b636c87f414411a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"984df9bc1103ee70b636c87f414411a6","url":"https://api.github.com/users/documentcloud","login":"documentcloud","id":93383},"repo":{"name":"backbone","fork":false,"pushed_at":"2011-10-29T19:33:24Z","master_branch":null,"homepage":"http://documentcloud.github.com/backbone/","clone_url":"https://github.com/documentcloud/backbone.git","updated_at":"2011-10-29T19:33:24Z","open_issues":126,"language":"JavaScript","forks":549,"private":false,"svn_url":"https://svn.github.com/documentcloud/backbone","url":"https://api.github.com/repos/documentcloud/backbone","owner":{"avatar_url":"https://secure.gravatar.com/avatar/984df9bc1103ee70b636c87f414411a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"984df9bc1103ee70b636c87f414411a6","url":"https://api.github.com/users/documentcloud","login":"documentcloud","id":93383},"html_url":"https://github.com/documentcloud/backbone","description":"Give your JS App some Backbone with Models, Views, Collections, and Events","size":1832,"id":952189,"git_url":"git://github.com/documentcloud/backbone.git","watchers":4340,"created_at":"2010-09-30T19:41:28Z","ssh_url":"git@github.com:documentcloud/backbone.git"},"label":"documentcloud:master","sha":"41e470321deea9c30c1dd0327dc7ce312ae7c31d"},"diff_url":"https://github.com/documentcloud/backbone/pull/659.diff","commits":1,"head":{"ref":"router_no_callback","user":{"avatar_url":"https://secure.gravatar.com/avatar/e592bd1326b1e80188ed4c0bf26b9f75?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e592bd1326b1e80188ed4c0bf26b9f75","url":"https://api.github.com/users/derickbailey","login":"derickbailey","id":75190},"repo":{"name":"backbone","fork":true,"pushed_at":"2011-10-07T00:10:05Z","master_branch":null,"homepage":"http://documentcloud.github.com/backbone/","clone_url":"https://github.com/derickbailey/backbone.git","updated_at":"2011-10-07T00:10:06Z","open_issues":0,"language":"JavaScript","forks":0,"private":false,"svn_url":"https://svn.github.com/derickbailey/backbone","url":"https://api.github.com/repos/derickbailey/backbone","owner":{"avatar_url":"https://secure.gravatar.com/avatar/e592bd1326b1e80188ed4c0bf26b9f75?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e592bd1326b1e80188ed4c0bf26b9f75","url":"https://api.github.com/users/derickbailey","login":"derickbailey","id":75190},"html_url":"https://github.com/derickbailey/backbone","description":"Give your JS App some Backbone with Models, Views, Collections, and Events","size":144,"id":2521702,"git_url":"git://github.com/derickbailey/backbone.git","watchers":1,"created_at":"2011-10-05T19:59:16Z","ssh_url":"git@github.com:derickbailey/backbone.git"},"label":"derickbailey:router_no_callback","sha":"6799c8e8be220f085ba63d44f8e626f9b5bfef0c"},"url":"https://api.github.com/repos/documentcloud/backbone/pulls/659","additions":22,"merged":false,"body":"I'm using a router without using callback methods in an example app that I'm building, and I don't want to be required to build a callback method on my router. \r\n\r\nfor example, i want this to work:\r\n\r\n```\r\nMyRouter = Backbone.Router.extend({\r\n  routes: {\r\n    \"foo\": \"bar\",\r\n    \"baz/:id\": \"bazIt\"\r\n  }\r\n});\r\n```\r\n\r\nwithout defining a `bar` and `bazIt` function on the router, this would cause errors because the callback is undefined.\r\n\r\nthis patch adds support for using a router like this, which then allows me to bind to the router events independently of the router configuration:\r\n\r\n```\r\nmyRouter = new MyRouter();\r\n\r\nmyRouter.bind(\"route:bar\", function(){ ... });\r\n```\r\n\r\nthis patch includes the test and implementation to cover this. ","merged_at":null,"issue_url":"https://github.com/documentcloud/backbone/issues/659","html_url":"https://github.com/documentcloud/backbone/pull/659","_links":{"comments":{"_href":"https://api.github.com/repos/documentcloud/backbone/issues/659/comments"},"html":{"_href":"https://github.com/documentcloud/backbone/pull/659"},"review_comments":{"_href":"https://api.github.com/repos/documentcloud/backbone/pulls/659/comments"},"self":{"_href":"https://api.github.com/repos/documentcloud/backbone/pulls/659"}},"review_comments":0,"number":659,"title":"allow route to be defined but not require a callback method on the router","mergeable":true,"id":384168,"patch_url":"https://github.com/documentcloud/backbone/pull/659.patch","changed_files":2,"created_at":"2011-10-07T00:14:39Z"},"action":"closed","number":659}