{"action":"created","comment":{"url":"https://api.github.com/repos/wooffull/wfl-editor/pulls/comments/89667898","pull_request_review_id":10211905,"id":89667898,"diff_hunk":"@@ -98,6 +98,18 @@ class WflEditor {\n     this.canvasDomObject.width  = width  - padding * 2;\n     this.canvasDomObject.height = height - padding * 2;\n   }\n+  \n+  onCurrentComponentViewClick() {\n+    var toolId = $(this._curComponentTool).attr(\"id\");\n+    \n+    switch (toolId) {\n+      case 'ctool-entity':\n+        // Get current selected Entity\n+        var selected = this._curComponentView.getEntity();","path":"src/scripts/WflEditor.js","position":11,"original_position":11,"commit_id":"d54f7af5751e57911559b3fdf9c413f82f0a3da7","original_commit_id":"d54f7af5751e57911559b3fdf9c413f82f0a3da7","user":{"login":"wooffull","id":6877157,"avatar_url":"https://avatars.githubusercontent.com/u/6877157?v=3","gravatar_id":"","url":"https://api.github.com/users/wooffull","html_url":"https://github.com/wooffull","followers_url":"https://api.github.com/users/wooffull/followers","following_url":"https://api.github.com/users/wooffull/following{/other_user}","gists_url":"https://api.github.com/users/wooffull/gists{/gist_id}","starred_url":"https://api.github.com/users/wooffull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wooffull/subscriptions","organizations_url":"https://api.github.com/users/wooffull/orgs","repos_url":"https://api.github.com/users/wooffull/repos","events_url":"https://api.github.com/users/wooffull/events{/privacy}","received_events_url":"https://api.github.com/users/wooffull/received_events","type":"User","site_admin":false},"body":"Change `var` to `let`","created_at":"2016-11-26T08:29:20Z","updated_at":"2016-11-26T08:29:32Z","html_url":"https://github.com/wooffull/wfl-editor/pull/1#discussion_r89667898","pull_request_url":"https://api.github.com/repos/wooffull/wfl-editor/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/wooffull/wfl-editor/pulls/comments/89667898"},"html":{"href":"https://github.com/wooffull/wfl-editor/pull/1#discussion_r89667898"},"pull_request":{"href":"https://api.github.com/repos/wooffull/wfl-editor/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/wooffull/wfl-editor/pulls/1","id":95365138,"html_url":"https://github.com/wooffull/wfl-editor/pull/1","diff_url":"https://github.com/wooffull/wfl-editor/pull/1.diff","patch_url":"https://github.com/wooffull/wfl-editor/pull/1.patch","issue_url":"https://api.github.com/repos/wooffull/wfl-editor/issues/1","number":1,"state":"open","locked":false,"title":"Added functionality to EntityView","user":{"login":"bbeshel","id":11545804,"avatar_url":"https://avatars.githubusercontent.com/u/11545804?v=3","gravatar_id":"","url":"https://api.github.com/users/bbeshel","html_url":"https://github.com/bbeshel","followers_url":"https://api.github.com/users/bbeshel/followers","following_url":"https://api.github.com/users/bbeshel/following{/other_user}","gists_url":"https://api.github.com/users/bbeshel/gists{/gist_id}","starred_url":"https://api.github.com/users/bbeshel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbeshel/subscriptions","organizations_url":"https://api.github.com/users/bbeshel/orgs","repos_url":"https://api.github.com/users/bbeshel/repos","events_url":"https://api.github.com/users/bbeshel/events{/privacy}","received_events_url":"https://api.github.com/users/bbeshel/received_events","type":"User","site_admin":false},"body":"Added functionality to EntityView, onclick now selects the current entity. Clicking the scene will add it to the WorldEditorScene","created_at":"2016-11-26T08:25:26Z","updated_at":"2016-11-26T08:31:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e668bc7743b94b22ac6dc9154faf227000b2cb7d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wooffull/wfl-editor/pulls/1/commits","review_comments_url":"https://api.github.com/repos/wooffull/wfl-editor/pulls/1/comments","review_comment_url":"https://api.github.com/repos/wooffull/wfl-editor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wooffull/wfl-editor/issues/1/comments","statuses_url":"https://api.github.com/repos/wooffull/wfl-editor/statuses/d54f7af5751e57911559b3fdf9c413f82f0a3da7","head":{"label":"bbeshel:master","ref":"master","sha":"d54f7af5751e57911559b3fdf9c413f82f0a3da7","user":{"login":"bbeshel","id":11545804,"avatar_url":"https://avatars.githubusercontent.com/u/11545804?v=3","gravatar_id":"","url":"https://api.github.com/users/bbeshel","html_url":"https://github.com/bbeshel","followers_url":"https://api.github.com/users/bbeshel/followers","following_url":"https://api.github.com/users/bbeshel/following{/other_user}","gists_url":"https://api.github.com/users/bbeshel/gists{/gist_id}","starred_url":"https://api.github.com/users/bbeshel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbeshel/subscriptions","organizations_url":"https://api.github.com/users/bbeshel/orgs","repos_url":"https://api.github.com/users/bbeshel/repos","events_url":"https://api.github.com/users/bbeshel/events{/privacy}","received_events_url":"https://api.github.com/users/bbeshel/received_events","type":"User","site_admin":false},"repo":{"id":74813491,"name":"wfl-editor","full_name":"bbeshel/wfl-editor","owner":{"login":"bbeshel","id":11545804,"avatar_url":"https://avatars.githubusercontent.com/u/11545804?v=3","gravatar_id":"","url":"https://api.github.com/users/bbeshel","html_url":"https://github.com/bbeshel","followers_url":"https://api.github.com/users/bbeshel/followers","following_url":"https://api.github.com/users/bbeshel/following{/other_user}","gists_url":"https://api.github.com/users/bbeshel/gists{/gist_id}","starred_url":"https://api.github.com/users/bbeshel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbeshel/subscriptions","organizations_url":"https://api.github.com/users/bbeshel/orgs","repos_url":"https://api.github.com/users/bbeshel/repos","events_url":"https://api.github.com/users/bbeshel/events{/privacy}","received_events_url":"https://api.github.com/users/bbeshel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbeshel/wfl-editor","description":"Game editor for the WFL engine","fork":true,"url":"https://api.github.com/repos/bbeshel/wfl-editor","forks_url":"https://api.github.com/repos/bbeshel/wfl-editor/forks","keys_url":"https://api.github.com/repos/bbeshel/wfl-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbeshel/wfl-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbeshel/wfl-editor/teams","hooks_url":"https://api.github.com/repos/bbeshel/wfl-editor/hooks","issue_events_url":"https://api.github.com/repos/bbeshel/wfl-editor/issues/events{/number}","events_url":"https://api.github.com/repos/bbeshel/wfl-editor/events","assignees_url":"https://api.github.com/repos/bbeshel/wfl-editor/assignees{/user}","branches_url":"https://api.github.com/repos/bbeshel/wfl-editor/branches{/branch}","tags_url":"https://api.github.com/repos/bbeshel/wfl-editor/tags","blobs_url":"https://api.github.com/repos/bbeshel/wfl-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbeshel/wfl-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbeshel/wfl-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbeshel/wfl-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbeshel/wfl-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/bbeshel/wfl-editor/languages","stargazers_url":"https://api.github.com/repos/bbeshel/wfl-editor/stargazers","contributors_url":"https://api.github.com/repos/bbeshel/wfl-editor/contributors","subscribers_url":"https://api.github.com/repos/bbeshel/wfl-editor/subscribers","subscription_url":"https://api.github.com/repos/bbeshel/wfl-editor/subscription","commits_url":"https://api.github.com/repos/bbeshel/wfl-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbeshel/wfl-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbeshel/wfl-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbeshel/wfl-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbeshel/wfl-editor/contents/{+path}","compare_url":"https://api.github.com/repos/bbeshel/wfl-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbeshel/wfl-editor/merges","archive_url":"https://api.github.com/repos/bbeshel/wfl-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbeshel/wfl-editor/downloads","issues_url":"https://api.github.com/repos/bbeshel/wfl-editor/issues{/number}","pulls_url":"https://api.github.com/repos/bbeshel/wfl-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/bbeshel/wfl-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/bbeshel/wfl-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbeshel/wfl-editor/labels{/name}","releases_url":"https://api.github.com/repos/bbeshel/wfl-editor/releases{/id}","deployments_url":"https://api.github.com/repos/bbeshel/wfl-editor/deployments","created_at":"2016-11-26T08:19:01Z","updated_at":"2016-11-26T08:19:06Z","pushed_at":"2016-11-26T08:23:55Z","git_url":"git://github.com/bbeshel/wfl-editor.git","ssh_url":"git@github.com:bbeshel/wfl-editor.git","clone_url":"https://github.com/bbeshel/wfl-editor.git","svn_url":"https://github.com/bbeshel/wfl-editor","homepage":null,"size":81868,"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":"wooffull:master","ref":"master","sha":"eb2dabd172d17bf84ca999694efeacc44876d393","user":{"login":"wooffull","id":6877157,"avatar_url":"https://avatars.githubusercontent.com/u/6877157?v=3","gravatar_id":"","url":"https://api.github.com/users/wooffull","html_url":"https://github.com/wooffull","followers_url":"https://api.github.com/users/wooffull/followers","following_url":"https://api.github.com/users/wooffull/following{/other_user}","gists_url":"https://api.github.com/users/wooffull/gists{/gist_id}","starred_url":"https://api.github.com/users/wooffull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wooffull/subscriptions","organizations_url":"https://api.github.com/users/wooffull/orgs","repos_url":"https://api.github.com/users/wooffull/repos","events_url":"https://api.github.com/users/wooffull/events{/privacy}","received_events_url":"https://api.github.com/users/wooffull/received_events","type":"User","site_admin":false},"repo":{"id":59921734,"name":"wfl-editor","full_name":"wooffull/wfl-editor","owner":{"login":"wooffull","id":6877157,"avatar_url":"https://avatars.githubusercontent.com/u/6877157?v=3","gravatar_id":"","url":"https://api.github.com/users/wooffull","html_url":"https://github.com/wooffull","followers_url":"https://api.github.com/users/wooffull/followers","following_url":"https://api.github.com/users/wooffull/following{/other_user}","gists_url":"https://api.github.com/users/wooffull/gists{/gist_id}","starred_url":"https://api.github.com/users/wooffull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wooffull/subscriptions","organizations_url":"https://api.github.com/users/wooffull/orgs","repos_url":"https://api.github.com/users/wooffull/repos","events_url":"https://api.github.com/users/wooffull/events{/privacy}","received_events_url":"https://api.github.com/users/wooffull/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wooffull/wfl-editor","description":"Game editor for the WFL engine","fork":false,"url":"https://api.github.com/repos/wooffull/wfl-editor","forks_url":"https://api.github.com/repos/wooffull/wfl-editor/forks","keys_url":"https://api.github.com/repos/wooffull/wfl-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wooffull/wfl-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wooffull/wfl-editor/teams","hooks_url":"https://api.github.com/repos/wooffull/wfl-editor/hooks","issue_events_url":"https://api.github.com/repos/wooffull/wfl-editor/issues/events{/number}","events_url":"https://api.github.com/repos/wooffull/wfl-editor/events","assignees_url":"https://api.github.com/repos/wooffull/wfl-editor/assignees{/user}","branches_url":"https://api.github.com/repos/wooffull/wfl-editor/branches{/branch}","tags_url":"https://api.github.com/repos/wooffull/wfl-editor/tags","blobs_url":"https://api.github.com/repos/wooffull/wfl-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wooffull/wfl-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wooffull/wfl-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/wooffull/wfl-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wooffull/wfl-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/wooffull/wfl-editor/languages","stargazers_url":"https://api.github.com/repos/wooffull/wfl-editor/stargazers","contributors_url":"https://api.github.com/repos/wooffull/wfl-editor/contributors","subscribers_url":"https://api.github.com/repos/wooffull/wfl-editor/subscribers","subscription_url":"https://api.github.com/repos/wooffull/wfl-editor/subscription","commits_url":"https://api.github.com/repos/wooffull/wfl-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/wooffull/wfl-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/wooffull/wfl-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/wooffull/wfl-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/wooffull/wfl-editor/contents/{+path}","compare_url":"https://api.github.com/repos/wooffull/wfl-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wooffull/wfl-editor/merges","archive_url":"https://api.github.com/repos/wooffull/wfl-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wooffull/wfl-editor/downloads","issues_url":"https://api.github.com/repos/wooffull/wfl-editor/issues{/number}","pulls_url":"https://api.github.com/repos/wooffull/wfl-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/wooffull/wfl-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/wooffull/wfl-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wooffull/wfl-editor/labels{/name}","releases_url":"https://api.github.com/repos/wooffull/wfl-editor/releases{/id}","deployments_url":"https://api.github.com/repos/wooffull/wfl-editor/deployments","created_at":"2016-05-29T01:42:31Z","updated_at":"2016-10-01T09:38:13Z","pushed_at":"2016-11-26T08:25:27Z","git_url":"git://github.com/wooffull/wfl-editor.git","ssh_url":"git@github.com:wooffull/wfl-editor.git","clone_url":"https://github.com/wooffull/wfl-editor.git","svn_url":"https://github.com/wooffull/wfl-editor","homepage":null,"size":81868,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wooffull/wfl-editor/pulls/1"},"html":{"href":"https://github.com/wooffull/wfl-editor/pull/1"},"issue":{"href":"https://api.github.com/repos/wooffull/wfl-editor/issues/1"},"comments":{"href":"https://api.github.com/repos/wooffull/wfl-editor/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/wooffull/wfl-editor/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/wooffull/wfl-editor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wooffull/wfl-editor/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/wooffull/wfl-editor/statuses/d54f7af5751e57911559b3fdf9c413f82f0a3da7"}}}}
{"actor":{"display_login":"wooffull"}}