{"action":"created","comment":{"url":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/comments/34220469","id":34220469,"diff_hunk":"@@ -0,0 +1,197 @@\n+import ui.ImageView as ImageView;\n+import ui.ImageScaleView as ImageScaleView;\n+import lib.PubSub as PubSub;\n+\n+var uid = 0;\n+var uidInput = -1;\n+\n+exports = Class(ImageScaleView, function(supr) {\n+\n+  this.init = function(opts) {\n+    supr(this, 'init', [opts]);\n+\n+    if (!opts.pressedImage) {\n+      opts.pressedImage = opts.image;\n+    }\n+\n+    if (!opts.disabledImage) {\n+      opts.disabledImage = opts.image;\n+    }\n+\n+    this.normalImage = opts.image;\n+    this.pressedImage = opts.pressedImage;\n+    this.disabledImage = opts.disabledImage;\n+\n+    this.toggle = opts.toggle || false;\n+\n+    this._btnID = uid++;\n+    this._pubsub = new PubSub();","path":"src/ui/ButtonView.js","position":28,"original_position":28,"commit_id":"589e937afb73b4542fa0b9296f45e39cc7124e58","original_commit_id":"589e937afb73b4542fa0b9296f45e39cc7124e58","user":{"login":"rogueSkib","id":932918,"avatar_url":"https://avatars.githubusercontent.com/u/932918?v=3","gravatar_id":"","url":"https://api.github.com/users/rogueSkib","html_url":"https://github.com/rogueSkib","followers_url":"https://api.github.com/users/rogueSkib/followers","following_url":"https://api.github.com/users/rogueSkib/following{/other_user}","gists_url":"https://api.github.com/users/rogueSkib/gists{/gist_id}","starred_url":"https://api.github.com/users/rogueSkib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogueSkib/subscriptions","organizations_url":"https://api.github.com/users/rogueSkib/orgs","repos_url":"https://api.github.com/users/rogueSkib/repos","events_url":"https://api.github.com/users/rogueSkib/events{/privacy}","received_events_url":"https://api.github.com/users/rogueSkib/received_events","type":"User","site_admin":false},"body":"View's inherit from PubSub, aka Emitter, doesn't seem like adding an additional instance of PubSub is necessary","created_at":"2015-07-09T03:08:50Z","updated_at":"2015-07-09T03:08:50Z","html_url":"https://github.com/gameclosure/devkit-scene/pull/27#discussion_r34220469","pull_request_url":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/comments/34220469"},"html":{"href":"https://github.com/gameclosure/devkit-scene/pull/27#discussion_r34220469"},"pull_request":{"href":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/27","id":39544039,"html_url":"https://github.com/gameclosure/devkit-scene/pull/27","diff_url":"https://github.com/gameclosure/devkit-scene/pull/27.diff","patch_url":"https://github.com/gameclosure/devkit-scene/pull/27.patch","issue_url":"https://api.github.com/repos/gameclosure/devkit-scene/issues/27","number":27,"state":"open","locked":false,"title":"Added a few new features and fixed a few existing features","user":{"login":"yofreke","id":536581,"avatar_url":"https://avatars.githubusercontent.com/u/536581?v=3","gravatar_id":"","url":"https://api.github.com/users/yofreke","html_url":"https://github.com/yofreke","followers_url":"https://api.github.com/users/yofreke/followers","following_url":"https://api.github.com/users/yofreke/following{/other_user}","gists_url":"https://api.github.com/users/yofreke/gists{/gist_id}","starred_url":"https://api.github.com/users/yofreke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yofreke/subscriptions","organizations_url":"https://api.github.com/users/yofreke/orgs","repos_url":"https://api.github.com/users/yofreke/repos","events_url":"https://api.github.com/users/yofreke/events{/privacy}","received_events_url":"https://api.github.com/users/yofreke/received_events","type":"User","site_admin":false},"body":"developed alongside the saucy trucks game, matches master of entities","created_at":"2015-07-09T02:59:58Z","updated_at":"2015-07-09T03:08:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e819cc967cd3e645b8e87ba8b6bd7ee206ffb952","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/27/commits","review_comments_url":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/27/comments","review_comment_url":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gameclosure/devkit-scene/issues/27/comments","statuses_url":"https://api.github.com/repos/gameclosure/devkit-scene/statuses/589e937afb73b4542fa0b9296f45e39cc7124e58","head":{"label":"gameclosure:joe-saucy","ref":"joe-saucy","sha":"589e937afb73b4542fa0b9296f45e39cc7124e58","user":{"login":"gameclosure","id":491323,"avatar_url":"https://avatars.githubusercontent.com/u/491323?v=3","gravatar_id":"","url":"https://api.github.com/users/gameclosure","html_url":"https://github.com/gameclosure","followers_url":"https://api.github.com/users/gameclosure/followers","following_url":"https://api.github.com/users/gameclosure/following{/other_user}","gists_url":"https://api.github.com/users/gameclosure/gists{/gist_id}","starred_url":"https://api.github.com/users/gameclosure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gameclosure/subscriptions","organizations_url":"https://api.github.com/users/gameclosure/orgs","repos_url":"https://api.github.com/users/gameclosure/repos","events_url":"https://api.github.com/users/gameclosure/events{/privacy}","received_events_url":"https://api.github.com/users/gameclosure/received_events","type":"Organization","site_admin":false},"repo":{"id":29332400,"name":"devkit-scene","full_name":"gameclosure/devkit-scene","owner":{"login":"gameclosure","id":491323,"avatar_url":"https://avatars.githubusercontent.com/u/491323?v=3","gravatar_id":"","url":"https://api.github.com/users/gameclosure","html_url":"https://github.com/gameclosure","followers_url":"https://api.github.com/users/gameclosure/followers","following_url":"https://api.github.com/users/gameclosure/following{/other_user}","gists_url":"https://api.github.com/users/gameclosure/gists{/gist_id}","starred_url":"https://api.github.com/users/gameclosure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gameclosure/subscriptions","organizations_url":"https://api.github.com/users/gameclosure/orgs","repos_url":"https://api.github.com/users/gameclosure/repos","events_url":"https://api.github.com/users/gameclosure/events{/privacy}","received_events_url":"https://api.github.com/users/gameclosure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gameclosure/devkit-scene","description":"The play's scene up on the high stage, the module to play the game.","fork":false,"url":"https://api.github.com/repos/gameclosure/devkit-scene","forks_url":"https://api.github.com/repos/gameclosure/devkit-scene/forks","keys_url":"https://api.github.com/repos/gameclosure/devkit-scene/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gameclosure/devkit-scene/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gameclosure/devkit-scene/teams","hooks_url":"https://api.github.com/repos/gameclosure/devkit-scene/hooks","issue_events_url":"https://api.github.com/repos/gameclosure/devkit-scene/issues/events{/number}","events_url":"https://api.github.com/repos/gameclosure/devkit-scene/events","assignees_url":"https://api.github.com/repos/gameclosure/devkit-scene/assignees{/user}","branches_url":"https://api.github.com/repos/gameclosure/devkit-scene/branches{/branch}","tags_url":"https://api.github.com/repos/gameclosure/devkit-scene/tags","blobs_url":"https://api.github.com/repos/gameclosure/devkit-scene/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gameclosure/devkit-scene/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gameclosure/devkit-scene/git/refs{/sha}","trees_url":"https://api.github.com/repos/gameclosure/devkit-scene/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gameclosure/devkit-scene/statuses/{sha}","languages_url":"https://api.github.com/repos/gameclosure/devkit-scene/languages","stargazers_url":"https://api.github.com/repos/gameclosure/devkit-scene/stargazers","contributors_url":"https://api.github.com/repos/gameclosure/devkit-scene/contributors","subscribers_url":"https://api.github.com/repos/gameclosure/devkit-scene/subscribers","subscription_url":"https://api.github.com/repos/gameclosure/devkit-scene/subscription","commits_url":"https://api.github.com/repos/gameclosure/devkit-scene/commits{/sha}","git_commits_url":"https://api.github.com/repos/gameclosure/devkit-scene/git/commits{/sha}","comments_url":"https://api.github.com/repos/gameclosure/devkit-scene/comments{/number}","issue_comment_url":"https://api.github.com/repos/gameclosure/devkit-scene/issues/comments{/number}","contents_url":"https://api.github.com/repos/gameclosure/devkit-scene/contents/{+path}","compare_url":"https://api.github.com/repos/gameclosure/devkit-scene/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gameclosure/devkit-scene/merges","archive_url":"https://api.github.com/repos/gameclosure/devkit-scene/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gameclosure/devkit-scene/downloads","issues_url":"https://api.github.com/repos/gameclosure/devkit-scene/issues{/number}","pulls_url":"https://api.github.com/repos/gameclosure/devkit-scene/pulls{/number}","milestones_url":"https://api.github.com/repos/gameclosure/devkit-scene/milestones{/number}","notifications_url":"https://api.github.com/repos/gameclosure/devkit-scene/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gameclosure/devkit-scene/labels{/name}","releases_url":"https://api.github.com/repos/gameclosure/devkit-scene/releases{/id}","created_at":"2015-01-16T04:20:52Z","updated_at":"2015-05-31T16:32:51Z","pushed_at":"2015-07-09T02:59:59Z","git_url":"git://github.com/gameclosure/devkit-scene.git","ssh_url":"git@github.com:gameclosure/devkit-scene.git","clone_url":"https://github.com/gameclosure/devkit-scene.git","svn_url":"https://github.com/gameclosure/devkit-scene","homepage":null,"size":761,"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":17,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"base":{"label":"gameclosure:master","ref":"master","sha":"3e57bdeaeec50d3f27ceda993220b1dc3b740779","user":{"login":"gameclosure","id":491323,"avatar_url":"https://avatars.githubusercontent.com/u/491323?v=3","gravatar_id":"","url":"https://api.github.com/users/gameclosure","html_url":"https://github.com/gameclosure","followers_url":"https://api.github.com/users/gameclosure/followers","following_url":"https://api.github.com/users/gameclosure/following{/other_user}","gists_url":"https://api.github.com/users/gameclosure/gists{/gist_id}","starred_url":"https://api.github.com/users/gameclosure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gameclosure/subscriptions","organizations_url":"https://api.github.com/users/gameclosure/orgs","repos_url":"https://api.github.com/users/gameclosure/repos","events_url":"https://api.github.com/users/gameclosure/events{/privacy}","received_events_url":"https://api.github.com/users/gameclosure/received_events","type":"Organization","site_admin":false},"repo":{"id":29332400,"name":"devkit-scene","full_name":"gameclosure/devkit-scene","owner":{"login":"gameclosure","id":491323,"avatar_url":"https://avatars.githubusercontent.com/u/491323?v=3","gravatar_id":"","url":"https://api.github.com/users/gameclosure","html_url":"https://github.com/gameclosure","followers_url":"https://api.github.com/users/gameclosure/followers","following_url":"https://api.github.com/users/gameclosure/following{/other_user}","gists_url":"https://api.github.com/users/gameclosure/gists{/gist_id}","starred_url":"https://api.github.com/users/gameclosure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gameclosure/subscriptions","organizations_url":"https://api.github.com/users/gameclosure/orgs","repos_url":"https://api.github.com/users/gameclosure/repos","events_url":"https://api.github.com/users/gameclosure/events{/privacy}","received_events_url":"https://api.github.com/users/gameclosure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gameclosure/devkit-scene","description":"The play's scene up on the high stage, the module to play the game.","fork":false,"url":"https://api.github.com/repos/gameclosure/devkit-scene","forks_url":"https://api.github.com/repos/gameclosure/devkit-scene/forks","keys_url":"https://api.github.com/repos/gameclosure/devkit-scene/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gameclosure/devkit-scene/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gameclosure/devkit-scene/teams","hooks_url":"https://api.github.com/repos/gameclosure/devkit-scene/hooks","issue_events_url":"https://api.github.com/repos/gameclosure/devkit-scene/issues/events{/number}","events_url":"https://api.github.com/repos/gameclosure/devkit-scene/events","assignees_url":"https://api.github.com/repos/gameclosure/devkit-scene/assignees{/user}","branches_url":"https://api.github.com/repos/gameclosure/devkit-scene/branches{/branch}","tags_url":"https://api.github.com/repos/gameclosure/devkit-scene/tags","blobs_url":"https://api.github.com/repos/gameclosure/devkit-scene/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gameclosure/devkit-scene/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gameclosure/devkit-scene/git/refs{/sha}","trees_url":"https://api.github.com/repos/gameclosure/devkit-scene/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gameclosure/devkit-scene/statuses/{sha}","languages_url":"https://api.github.com/repos/gameclosure/devkit-scene/languages","stargazers_url":"https://api.github.com/repos/gameclosure/devkit-scene/stargazers","contributors_url":"https://api.github.com/repos/gameclosure/devkit-scene/contributors","subscribers_url":"https://api.github.com/repos/gameclosure/devkit-scene/subscribers","subscription_url":"https://api.github.com/repos/gameclosure/devkit-scene/subscription","commits_url":"https://api.github.com/repos/gameclosure/devkit-scene/commits{/sha}","git_commits_url":"https://api.github.com/repos/gameclosure/devkit-scene/git/commits{/sha}","comments_url":"https://api.github.com/repos/gameclosure/devkit-scene/comments{/number}","issue_comment_url":"https://api.github.com/repos/gameclosure/devkit-scene/issues/comments{/number}","contents_url":"https://api.github.com/repos/gameclosure/devkit-scene/contents/{+path}","compare_url":"https://api.github.com/repos/gameclosure/devkit-scene/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gameclosure/devkit-scene/merges","archive_url":"https://api.github.com/repos/gameclosure/devkit-scene/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gameclosure/devkit-scene/downloads","issues_url":"https://api.github.com/repos/gameclosure/devkit-scene/issues{/number}","pulls_url":"https://api.github.com/repos/gameclosure/devkit-scene/pulls{/number}","milestones_url":"https://api.github.com/repos/gameclosure/devkit-scene/milestones{/number}","notifications_url":"https://api.github.com/repos/gameclosure/devkit-scene/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gameclosure/devkit-scene/labels{/name}","releases_url":"https://api.github.com/repos/gameclosure/devkit-scene/releases{/id}","created_at":"2015-01-16T04:20:52Z","updated_at":"2015-05-31T16:32:51Z","pushed_at":"2015-07-09T02:59:59Z","git_url":"git://github.com/gameclosure/devkit-scene.git","ssh_url":"git@github.com:gameclosure/devkit-scene.git","clone_url":"https://github.com/gameclosure/devkit-scene.git","svn_url":"https://github.com/gameclosure/devkit-scene","homepage":null,"size":761,"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":17,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/27"},"html":{"href":"https://github.com/gameclosure/devkit-scene/pull/27"},"issue":{"href":"https://api.github.com/repos/gameclosure/devkit-scene/issues/27"},"comments":{"href":"https://api.github.com/repos/gameclosure/devkit-scene/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gameclosure/devkit-scene/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/gameclosure/devkit-scene/statuses/589e937afb73b4542fa0b9296f45e39cc7124e58"}}}}