{"action":"created","comment":{"url":"https://api.github.com/repos/Courseography/courseography/pulls/comments/64673950","id":64673950,"diff_hunk":"@@ -579,8 +595,7 @@ var Node = React.createClass({\n             this.setState({status: newState}, function () {\n                 setCookie(nodeId, newState);\n                 this.props.childs.forEach(function (node) {\n-                    var currentNode = svg.refs['nodes'].refs[node] ||\n-                                      svg.refs['bools'].refs[node];\n+                    var currentNode = refLookUp(node, this.props.svg);","path":"public/js/graph/react_graph.js","position":28,"original_position":28,"commit_id":"d2d90f78e0ac3f0e4321fc2575b74f818bfce5e6","original_commit_id":"d2d90f78e0ac3f0e4321fc2575b74f818bfce5e6","user":{"login":"david-yz-liu","id":3333115,"avatar_url":"https://avatars.githubusercontent.com/u/3333115?v=3","gravatar_id":"","url":"https://api.github.com/users/david-yz-liu","html_url":"https://github.com/david-yz-liu","followers_url":"https://api.github.com/users/david-yz-liu/followers","following_url":"https://api.github.com/users/david-yz-liu/following{/other_user}","gists_url":"https://api.github.com/users/david-yz-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/david-yz-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-yz-liu/subscriptions","organizations_url":"https://api.github.com/users/david-yz-liu/orgs","repos_url":"https://api.github.com/users/david-yz-liu/repos","events_url":"https://api.github.com/users/david-yz-liu/events{/privacy}","received_events_url":"https://api.github.com/users/david-yz-liu/received_events","type":"User","site_admin":false},"body":"@klmerryn I should have caught this sooner, but this doesn't work. Use of `this` inside an anonymous function no longer refers to the \"outer this\" (in this case, the Node instance). Note that the original code did not refer to `this` at all.\r\n\r\nAlso, ask Christine/Ryan about this problem, as they've come across it before.\r\n\r\nNote: this happens in multiple places.","created_at":"2016-05-26T00:08:01Z","updated_at":"2016-05-26T00:08:01Z","html_url":"https://github.com/Courseography/courseography/pull/833#discussion_r64673950","pull_request_url":"https://api.github.com/repos/Courseography/courseography/pulls/833","_links":{"self":{"href":"https://api.github.com/repos/Courseography/courseography/pulls/comments/64673950"},"html":{"href":"https://github.com/Courseography/courseography/pull/833#discussion_r64673950"},"pull_request":{"href":"https://api.github.com/repos/Courseography/courseography/pulls/833"}}},"pull_request":{"url":"https://api.github.com/repos/Courseography/courseography/pulls/833","id":69613760,"html_url":"https://github.com/Courseography/courseography/pull/833","diff_url":"https://github.com/Courseography/courseography/pull/833.diff","patch_url":"https://github.com/Courseography/courseography/pull/833.patch","issue_url":"https://api.github.com/repos/Courseography/courseography/issues/833","number":833,"state":"open","locked":false,"title":"Reactgraphjs [Issue 812]","user":{"login":"klmerryn","id":18466608,"avatar_url":"https://avatars.githubusercontent.com/u/18466608?v=3","gravatar_id":"","url":"https://api.github.com/users/klmerryn","html_url":"https://github.com/klmerryn","followers_url":"https://api.github.com/users/klmerryn/followers","following_url":"https://api.github.com/users/klmerryn/following{/other_user}","gists_url":"https://api.github.com/users/klmerryn/gists{/gist_id}","starred_url":"https://api.github.com/users/klmerryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klmerryn/subscriptions","organizations_url":"https://api.github.com/users/klmerryn/orgs","repos_url":"https://api.github.com/users/klmerryn/repos","events_url":"https://api.github.com/users/klmerryn/events{/privacy}","received_events_url":"https://api.github.com/users/klmerryn/received_events","type":"User","site_admin":false},"body":"Refactor repetitive node lookups into helper function.","created_at":"2016-05-11T04:31:18Z","updated_at":"2016-05-26T00:08:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"122bcdcfed4299e49410473bf45292f9b4d055ec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Courseography/courseography/pulls/833/commits","review_comments_url":"https://api.github.com/repos/Courseography/courseography/pulls/833/comments","review_comment_url":"https://api.github.com/repos/Courseography/courseography/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Courseography/courseography/issues/833/comments","statuses_url":"https://api.github.com/repos/Courseography/courseography/statuses/d2d90f78e0ac3f0e4321fc2575b74f818bfce5e6","head":{"label":"klmerryn:reactgraphjs","ref":"reactgraphjs","sha":"d2d90f78e0ac3f0e4321fc2575b74f818bfce5e6","user":{"login":"klmerryn","id":18466608,"avatar_url":"https://avatars.githubusercontent.com/u/18466608?v=3","gravatar_id":"","url":"https://api.github.com/users/klmerryn","html_url":"https://github.com/klmerryn","followers_url":"https://api.github.com/users/klmerryn/followers","following_url":"https://api.github.com/users/klmerryn/following{/other_user}","gists_url":"https://api.github.com/users/klmerryn/gists{/gist_id}","starred_url":"https://api.github.com/users/klmerryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klmerryn/subscriptions","organizations_url":"https://api.github.com/users/klmerryn/orgs","repos_url":"https://api.github.com/users/klmerryn/repos","events_url":"https://api.github.com/users/klmerryn/events{/privacy}","received_events_url":"https://api.github.com/users/klmerryn/received_events","type":"User","site_admin":false},"repo":{"id":58080656,"name":"courseography","full_name":"klmerryn/courseography","owner":{"login":"klmerryn","id":18466608,"avatar_url":"https://avatars.githubusercontent.com/u/18466608?v=3","gravatar_id":"","url":"https://api.github.com/users/klmerryn","html_url":"https://github.com/klmerryn","followers_url":"https://api.github.com/users/klmerryn/followers","following_url":"https://api.github.com/users/klmerryn/following{/other_user}","gists_url":"https://api.github.com/users/klmerryn/gists{/gist_id}","starred_url":"https://api.github.com/users/klmerryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klmerryn/subscriptions","organizations_url":"https://api.github.com/users/klmerryn/orgs","repos_url":"https://api.github.com/users/klmerryn/repos","events_url":"https://api.github.com/users/klmerryn/events{/privacy}","received_events_url":"https://api.github.com/users/klmerryn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/klmerryn/courseography","description":"Courseography is a tool created by David Liu and Ian Stewart-Binks to guide students through their undergraduate careers.","fork":true,"url":"https://api.github.com/repos/klmerryn/courseography","forks_url":"https://api.github.com/repos/klmerryn/courseography/forks","keys_url":"https://api.github.com/repos/klmerryn/courseography/keys{/key_id}","collaborators_url":"https://api.github.com/repos/klmerryn/courseography/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/klmerryn/courseography/teams","hooks_url":"https://api.github.com/repos/klmerryn/courseography/hooks","issue_events_url":"https://api.github.com/repos/klmerryn/courseography/issues/events{/number}","events_url":"https://api.github.com/repos/klmerryn/courseography/events","assignees_url":"https://api.github.com/repos/klmerryn/courseography/assignees{/user}","branches_url":"https://api.github.com/repos/klmerryn/courseography/branches{/branch}","tags_url":"https://api.github.com/repos/klmerryn/courseography/tags","blobs_url":"https://api.github.com/repos/klmerryn/courseography/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/klmerryn/courseography/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/klmerryn/courseography/git/refs{/sha}","trees_url":"https://api.github.com/repos/klmerryn/courseography/git/trees{/sha}","statuses_url":"https://api.github.com/repos/klmerryn/courseography/statuses/{sha}","languages_url":"https://api.github.com/repos/klmerryn/courseography/languages","stargazers_url":"https://api.github.com/repos/klmerryn/courseography/stargazers","contributors_url":"https://api.github.com/repos/klmerryn/courseography/contributors","subscribers_url":"https://api.github.com/repos/klmerryn/courseography/subscribers","subscription_url":"https://api.github.com/repos/klmerryn/courseography/subscription","commits_url":"https://api.github.com/repos/klmerryn/courseography/commits{/sha}","git_commits_url":"https://api.github.com/repos/klmerryn/courseography/git/commits{/sha}","comments_url":"https://api.github.com/repos/klmerryn/courseography/comments{/number}","issue_comment_url":"https://api.github.com/repos/klmerryn/courseography/issues/comments{/number}","contents_url":"https://api.github.com/repos/klmerryn/courseography/contents/{+path}","compare_url":"https://api.github.com/repos/klmerryn/courseography/compare/{base}...{head}","merges_url":"https://api.github.com/repos/klmerryn/courseography/merges","archive_url":"https://api.github.com/repos/klmerryn/courseography/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/klmerryn/courseography/downloads","issues_url":"https://api.github.com/repos/klmerryn/courseography/issues{/number}","pulls_url":"https://api.github.com/repos/klmerryn/courseography/pulls{/number}","milestones_url":"https://api.github.com/repos/klmerryn/courseography/milestones{/number}","notifications_url":"https://api.github.com/repos/klmerryn/courseography/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/klmerryn/courseography/labels{/name}","releases_url":"https://api.github.com/repos/klmerryn/courseography/releases{/id}","deployments_url":"https://api.github.com/repos/klmerryn/courseography/deployments","created_at":"2016-05-04T20:04:49Z","updated_at":"2016-05-18T05:02:13Z","pushed_at":"2016-05-25T02:43:38Z","git_url":"git://github.com/klmerryn/courseography.git","ssh_url":"git@github.com:klmerryn/courseography.git","clone_url":"https://github.com/klmerryn/courseography.git","svn_url":"https://github.com/klmerryn/courseography","homepage":"","size":59283,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Courseography:master","ref":"master","sha":"59cec0e4e4912d9dce4361dfe250b07d252e13a9","user":{"login":"Courseography","id":9721671,"avatar_url":"https://avatars.githubusercontent.com/u/9721671?v=3","gravatar_id":"","url":"https://api.github.com/users/Courseography","html_url":"https://github.com/Courseography","followers_url":"https://api.github.com/users/Courseography/followers","following_url":"https://api.github.com/users/Courseography/following{/other_user}","gists_url":"https://api.github.com/users/Courseography/gists{/gist_id}","starred_url":"https://api.github.com/users/Courseography/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Courseography/subscriptions","organizations_url":"https://api.github.com/users/Courseography/orgs","repos_url":"https://api.github.com/users/Courseography/repos","events_url":"https://api.github.com/users/Courseography/events{/privacy}","received_events_url":"https://api.github.com/users/Courseography/received_events","type":"Organization","site_admin":false},"repo":{"id":16873349,"name":"courseography","full_name":"Courseography/courseography","owner":{"login":"Courseography","id":9721671,"avatar_url":"https://avatars.githubusercontent.com/u/9721671?v=3","gravatar_id":"","url":"https://api.github.com/users/Courseography","html_url":"https://github.com/Courseography","followers_url":"https://api.github.com/users/Courseography/followers","following_url":"https://api.github.com/users/Courseography/following{/other_user}","gists_url":"https://api.github.com/users/Courseography/gists{/gist_id}","starred_url":"https://api.github.com/users/Courseography/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Courseography/subscriptions","organizations_url":"https://api.github.com/users/Courseography/orgs","repos_url":"https://api.github.com/users/Courseography/repos","events_url":"https://api.github.com/users/Courseography/events{/privacy}","received_events_url":"https://api.github.com/users/Courseography/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Courseography/courseography","description":"Courseography is a tool created by David Liu and Ian Stewart-Binks to guide students through their undergraduate careers.","fork":false,"url":"https://api.github.com/repos/Courseography/courseography","forks_url":"https://api.github.com/repos/Courseography/courseography/forks","keys_url":"https://api.github.com/repos/Courseography/courseography/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Courseography/courseography/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Courseography/courseography/teams","hooks_url":"https://api.github.com/repos/Courseography/courseography/hooks","issue_events_url":"https://api.github.com/repos/Courseography/courseography/issues/events{/number}","events_url":"https://api.github.com/repos/Courseography/courseography/events","assignees_url":"https://api.github.com/repos/Courseography/courseography/assignees{/user}","branches_url":"https://api.github.com/repos/Courseography/courseography/branches{/branch}","tags_url":"https://api.github.com/repos/Courseography/courseography/tags","blobs_url":"https://api.github.com/repos/Courseography/courseography/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Courseography/courseography/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Courseography/courseography/git/refs{/sha}","trees_url":"https://api.github.com/repos/Courseography/courseography/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Courseography/courseography/statuses/{sha}","languages_url":"https://api.github.com/repos/Courseography/courseography/languages","stargazers_url":"https://api.github.com/repos/Courseography/courseography/stargazers","contributors_url":"https://api.github.com/repos/Courseography/courseography/contributors","subscribers_url":"https://api.github.com/repos/Courseography/courseography/subscribers","subscription_url":"https://api.github.com/repos/Courseography/courseography/subscription","commits_url":"https://api.github.com/repos/Courseography/courseography/commits{/sha}","git_commits_url":"https://api.github.com/repos/Courseography/courseography/git/commits{/sha}","comments_url":"https://api.github.com/repos/Courseography/courseography/comments{/number}","issue_comment_url":"https://api.github.com/repos/Courseography/courseography/issues/comments{/number}","contents_url":"https://api.github.com/repos/Courseography/courseography/contents/{+path}","compare_url":"https://api.github.com/repos/Courseography/courseography/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Courseography/courseography/merges","archive_url":"https://api.github.com/repos/Courseography/courseography/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Courseography/courseography/downloads","issues_url":"https://api.github.com/repos/Courseography/courseography/issues{/number}","pulls_url":"https://api.github.com/repos/Courseography/courseography/pulls{/number}","milestones_url":"https://api.github.com/repos/Courseography/courseography/milestones{/number}","notifications_url":"https://api.github.com/repos/Courseography/courseography/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Courseography/courseography/labels{/name}","releases_url":"https://api.github.com/repos/Courseography/courseography/releases{/id}","deployments_url":"https://api.github.com/repos/Courseography/courseography/deployments","created_at":"2014-02-15T22:32:22Z","updated_at":"2016-05-11T02:58:50Z","pushed_at":"2016-05-25T23:56:24Z","git_url":"git://github.com/Courseography/courseography.git","ssh_url":"git@github.com:Courseography/courseography.git","clone_url":"https://github.com/Courseography/courseography.git","svn_url":"https://github.com/Courseography/courseography","homepage":"","size":60814,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":64,"forks":32,"open_issues":64,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Courseography/courseography/pulls/833"},"html":{"href":"https://github.com/Courseography/courseography/pull/833"},"issue":{"href":"https://api.github.com/repos/Courseography/courseography/issues/833"},"comments":{"href":"https://api.github.com/repos/Courseography/courseography/issues/833/comments"},"review_comments":{"href":"https://api.github.com/repos/Courseography/courseography/pulls/833/comments"},"review_comment":{"href":"https://api.github.com/repos/Courseography/courseography/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Courseography/courseography/pulls/833/commits"},"statuses":{"href":"https://api.github.com/repos/Courseography/courseography/statuses/d2d90f78e0ac3f0e4321fc2575b74f818bfce5e6"}}}}
{"actor":{"display_login":"david-yz-liu"}}