{"action":"created","comment":{"url":"https://api.github.com/repos/fxos/mvc/pulls/comments/26050264","id":26050264,"diff_hunk":"@@ -143,7 +143,8 @@ export class View {\n \n     events[type].push({\n       selector: selector,\n-      handler: handler\n+      handler: handler,\n+      controller: this.controller","path":"mvc.js","position":6,"original_position":6,"commit_id":"350cc75d2d0da5a6577ead63a561c3a553e35fd1","original_commit_id":"350cc75d2d0da5a6577ead63a561c3a553e35fd1","user":{"login":"justindarc","id":207595,"avatar_url":"https://avatars.githubusercontent.com/u/207595?v=3","gravatar_id":"","url":"https://api.github.com/users/justindarc","html_url":"https://github.com/justindarc","followers_url":"https://api.github.com/users/justindarc/followers","following_url":"https://api.github.com/users/justindarc/following{/other_user}","gists_url":"https://api.github.com/users/justindarc/gists{/gist_id}","starred_url":"https://api.github.com/users/justindarc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justindarc/subscriptions","organizations_url":"https://api.github.com/users/justindarc/orgs","repos_url":"https://api.github.com/users/justindarc/repos","events_url":"https://api.github.com/users/justindarc/events{/privacy}","received_events_url":"https://api.github.com/users/justindarc/received_events","type":"User","site_admin":false},"body":"I don't like that we have to push all these references to the `controller` to the events stack since they'll all be the same anyway. However, I don't really see any easier alternative at the moment.","created_at":"2015-03-09T16:22:26Z","updated_at":"2015-03-09T16:22:26Z","html_url":"https://github.com/fxos/mvc/pull/8#discussion_r26050264","pull_request_url":"https://api.github.com/repos/fxos/mvc/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/fxos/mvc/pulls/comments/26050264"},"html":{"href":"https://github.com/fxos/mvc/pull/8#discussion_r26050264"},"pull_request":{"href":"https://api.github.com/repos/fxos/mvc/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/fxos/mvc/pulls/8","id":30773182,"html_url":"https://github.com/fxos/mvc/pull/8","diff_url":"https://github.com/fxos/mvc/pull/8.diff","patch_url":"https://github.com/fxos/mvc/pull/8.patch","issue_url":"https://api.github.com/repos/fxos/mvc/issues/8","number":8,"state":"open","locked":false,"title":"Add action handling to View, to pass events to Controller automatically","user":{"login":"DouglasSherk","id":1310914,"avatar_url":"https://avatars.githubusercontent.com/u/1310914?v=3","gravatar_id":"","url":"https://api.github.com/users/DouglasSherk","html_url":"https://github.com/DouglasSherk","followers_url":"https://api.github.com/users/DouglasSherk/followers","following_url":"https://api.github.com/users/DouglasSherk/following{/other_user}","gists_url":"https://api.github.com/users/DouglasSherk/gists{/gist_id}","starred_url":"https://api.github.com/users/DouglasSherk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouglasSherk/subscriptions","organizations_url":"https://api.github.com/users/DouglasSherk/orgs","repos_url":"https://api.github.com/users/DouglasSherk/repos","events_url":"https://api.github.com/users/DouglasSherk/events{/privacy}","received_events_url":"https://api.github.com/users/DouglasSherk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-09T15:56:39Z","updated_at":"2015-03-09T16:22:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b5dde90d4822d51d9dd7f97e412e15f65017ad9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fxos/mvc/pulls/8/commits","review_comments_url":"https://api.github.com/repos/fxos/mvc/pulls/8/comments","review_comment_url":"https://api.github.com/repos/fxos/mvc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fxos/mvc/issues/8/comments","statuses_url":"https://api.github.com/repos/fxos/mvc/statuses/350cc75d2d0da5a6577ead63a561c3a553e35fd1","head":{"label":"fxos:handle_action","ref":"handle_action","sha":"350cc75d2d0da5a6577ead63a561c3a553e35fd1","user":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"repo":{"id":28241857,"name":"mvc","full_name":"fxos/mvc","owner":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fxos/mvc","description":"A simple MVC pattern using extendable ES6 classes","fork":false,"url":"https://api.github.com/repos/fxos/mvc","forks_url":"https://api.github.com/repos/fxos/mvc/forks","keys_url":"https://api.github.com/repos/fxos/mvc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxos/mvc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxos/mvc/teams","hooks_url":"https://api.github.com/repos/fxos/mvc/hooks","issue_events_url":"https://api.github.com/repos/fxos/mvc/issues/events{/number}","events_url":"https://api.github.com/repos/fxos/mvc/events","assignees_url":"https://api.github.com/repos/fxos/mvc/assignees{/user}","branches_url":"https://api.github.com/repos/fxos/mvc/branches{/branch}","tags_url":"https://api.github.com/repos/fxos/mvc/tags","blobs_url":"https://api.github.com/repos/fxos/mvc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxos/mvc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxos/mvc/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxos/mvc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxos/mvc/statuses/{sha}","languages_url":"https://api.github.com/repos/fxos/mvc/languages","stargazers_url":"https://api.github.com/repos/fxos/mvc/stargazers","contributors_url":"https://api.github.com/repos/fxos/mvc/contributors","subscribers_url":"https://api.github.com/repos/fxos/mvc/subscribers","subscription_url":"https://api.github.com/repos/fxos/mvc/subscription","commits_url":"https://api.github.com/repos/fxos/mvc/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxos/mvc/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxos/mvc/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxos/mvc/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxos/mvc/contents/{+path}","compare_url":"https://api.github.com/repos/fxos/mvc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxos/mvc/merges","archive_url":"https://api.github.com/repos/fxos/mvc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxos/mvc/downloads","issues_url":"https://api.github.com/repos/fxos/mvc/issues{/number}","pulls_url":"https://api.github.com/repos/fxos/mvc/pulls{/number}","milestones_url":"https://api.github.com/repos/fxos/mvc/milestones{/number}","notifications_url":"https://api.github.com/repos/fxos/mvc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxos/mvc/labels{/name}","releases_url":"https://api.github.com/repos/fxos/mvc/releases{/id}","created_at":"2014-12-19T18:49:22Z","updated_at":"2015-03-06T22:33:50Z","pushed_at":"2015-03-09T15:56:07Z","git_url":"git://github.com/fxos/mvc.git","ssh_url":"git@github.com:fxos/mvc.git","clone_url":"https://github.com/fxos/mvc.git","svn_url":"https://github.com/fxos/mvc","homepage":null,"size":336,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"fxos:master","ref":"master","sha":"ce1760f24112e2fb89f14d3c32b8ab4e98dc3783","user":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"repo":{"id":28241857,"name":"mvc","full_name":"fxos/mvc","owner":{"login":"fxos","id":10078829,"avatar_url":"https://avatars.githubusercontent.com/u/10078829?v=3","gravatar_id":"","url":"https://api.github.com/users/fxos","html_url":"https://github.com/fxos","followers_url":"https://api.github.com/users/fxos/followers","following_url":"https://api.github.com/users/fxos/following{/other_user}","gists_url":"https://api.github.com/users/fxos/gists{/gist_id}","starred_url":"https://api.github.com/users/fxos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxos/subscriptions","organizations_url":"https://api.github.com/users/fxos/orgs","repos_url":"https://api.github.com/users/fxos/repos","events_url":"https://api.github.com/users/fxos/events{/privacy}","received_events_url":"https://api.github.com/users/fxos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fxos/mvc","description":"A simple MVC pattern using extendable ES6 classes","fork":false,"url":"https://api.github.com/repos/fxos/mvc","forks_url":"https://api.github.com/repos/fxos/mvc/forks","keys_url":"https://api.github.com/repos/fxos/mvc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxos/mvc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxos/mvc/teams","hooks_url":"https://api.github.com/repos/fxos/mvc/hooks","issue_events_url":"https://api.github.com/repos/fxos/mvc/issues/events{/number}","events_url":"https://api.github.com/repos/fxos/mvc/events","assignees_url":"https://api.github.com/repos/fxos/mvc/assignees{/user}","branches_url":"https://api.github.com/repos/fxos/mvc/branches{/branch}","tags_url":"https://api.github.com/repos/fxos/mvc/tags","blobs_url":"https://api.github.com/repos/fxos/mvc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxos/mvc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxos/mvc/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxos/mvc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxos/mvc/statuses/{sha}","languages_url":"https://api.github.com/repos/fxos/mvc/languages","stargazers_url":"https://api.github.com/repos/fxos/mvc/stargazers","contributors_url":"https://api.github.com/repos/fxos/mvc/contributors","subscribers_url":"https://api.github.com/repos/fxos/mvc/subscribers","subscription_url":"https://api.github.com/repos/fxos/mvc/subscription","commits_url":"https://api.github.com/repos/fxos/mvc/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxos/mvc/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxos/mvc/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxos/mvc/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxos/mvc/contents/{+path}","compare_url":"https://api.github.com/repos/fxos/mvc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxos/mvc/merges","archive_url":"https://api.github.com/repos/fxos/mvc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxos/mvc/downloads","issues_url":"https://api.github.com/repos/fxos/mvc/issues{/number}","pulls_url":"https://api.github.com/repos/fxos/mvc/pulls{/number}","milestones_url":"https://api.github.com/repos/fxos/mvc/milestones{/number}","notifications_url":"https://api.github.com/repos/fxos/mvc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxos/mvc/labels{/name}","releases_url":"https://api.github.com/repos/fxos/mvc/releases{/id}","created_at":"2014-12-19T18:49:22Z","updated_at":"2015-03-06T22:33:50Z","pushed_at":"2015-03-09T15:56:07Z","git_url":"git://github.com/fxos/mvc.git","ssh_url":"git@github.com:fxos/mvc.git","clone_url":"https://github.com/fxos/mvc.git","svn_url":"https://github.com/fxos/mvc","homepage":null,"size":336,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fxos/mvc/pulls/8"},"html":{"href":"https://github.com/fxos/mvc/pull/8"},"issue":{"href":"https://api.github.com/repos/fxos/mvc/issues/8"},"comments":{"href":"https://api.github.com/repos/fxos/mvc/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/fxos/mvc/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/fxos/mvc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fxos/mvc/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/fxos/mvc/statuses/350cc75d2d0da5a6577ead63a561c3a553e35fd1"}}}}