{"action":"created","comment":{"url":"https://api.github.com/repos/phosphorjs/phosphor/pulls/comments/26716998","id":26716998,"diff_hunk":"@@ -0,0 +1,76 @@\n+/*-----------------------------------------------------------------------------\n+| Copyright (c) 2014, S. Chris Colbert\n+|\n+| Distributed under the terms of the BSD 3-Clause License.\n+|\n+| The full license is in the file LICENSE, distributed with this software.\n+|----------------------------------------------------------------------------*/\n+module phosphor.virtualdom {\n+\n+import ICoreEvent = core.ICoreEvent;\n+\n+import SizePolicy = enums.SizePolicy;\n+\n+import ResizeEvent = events.ResizeEvent;\n+\n+import Point = geometry.Point;\n+import Size = geometry.Size;\n+\n+\n+/**\n+ * The class name added to code mirror component classes.\n+ */\n+var CODE_MIRROR_WIDGET_CLASS = 'p-CodeMirrorComponent';\n+\n+export interface ICodeMirrorData {\n+  config: CodeMirror.EditorConfiguration;\n+}\n+\n+/**\n+ * A component which hosts a CodeMirror editor.\n+ */\n+export\n+class CodeMirrorComponent extends BaseComponent<ICodeMirrorData> {\n+    \n+  static tagName = 'div';\n+  \n+  static className = CODE_MIRROR_WIDGET_CLASS;","path":"src/virtualdom/CodeMirrorComponent.ts","position":37,"original_position":37,"commit_id":"eae6cfd893e96820d9c1b45532d0ab95e17ff846","original_commit_id":"eae6cfd893e96820d9c1b45532d0ab95e17ff846","user":{"login":"sccolbert","id":137289,"avatar_url":"https://avatars.githubusercontent.com/u/137289?v=3","gravatar_id":"","url":"https://api.github.com/users/sccolbert","html_url":"https://github.com/sccolbert","followers_url":"https://api.github.com/users/sccolbert/followers","following_url":"https://api.github.com/users/sccolbert/following{/other_user}","gists_url":"https://api.github.com/users/sccolbert/gists{/gist_id}","starred_url":"https://api.github.com/users/sccolbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sccolbert/subscriptions","organizations_url":"https://api.github.com/users/sccolbert/orgs","repos_url":"https://api.github.com/users/sccolbert/repos","events_url":"https://api.github.com/users/sccolbert/events{/privacy}","received_events_url":"https://api.github.com/users/sccolbert/received_events","type":"User","site_admin":false},"body":"`_WIDGET_` -> `_COMPONENT_`","created_at":"2015-03-18T23:11:22Z","updated_at":"2015-03-18T23:11:22Z","html_url":"https://github.com/phosphorjs/phosphor/pull/1#discussion_r26716998","pull_request_url":"https://api.github.com/repos/phosphorjs/phosphor/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/phosphorjs/phosphor/pulls/comments/26716998"},"html":{"href":"https://github.com/phosphorjs/phosphor/pull/1#discussion_r26716998"},"pull_request":{"href":"https://api.github.com/repos/phosphorjs/phosphor/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/phosphorjs/phosphor/pulls/1","id":31469811,"html_url":"https://github.com/phosphorjs/phosphor/pull/1","diff_url":"https://github.com/phosphorjs/phosphor/pull/1.diff","patch_url":"https://github.com/phosphorjs/phosphor/pull/1.patch","issue_url":"https://api.github.com/repos/phosphorjs/phosphor/issues/1","number":1,"state":"open","locked":false,"title":"Codemirror comp","user":{"login":"ellisonbg","id":27600,"avatar_url":"https://avatars.githubusercontent.com/u/27600?v=3","gravatar_id":"","url":"https://api.github.com/users/ellisonbg","html_url":"https://github.com/ellisonbg","followers_url":"https://api.github.com/users/ellisonbg/followers","following_url":"https://api.github.com/users/ellisonbg/following{/other_user}","gists_url":"https://api.github.com/users/ellisonbg/gists{/gist_id}","starred_url":"https://api.github.com/users/ellisonbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellisonbg/subscriptions","organizations_url":"https://api.github.com/users/ellisonbg/orgs","repos_url":"https://api.github.com/users/ellisonbg/repos","events_url":"https://api.github.com/users/ellisonbg/events{/privacy}","received_events_url":"https://api.github.com/users/ellisonbg/received_events","type":"User","site_admin":false},"body":"This converts code mirror to a component.","created_at":"2015-03-18T20:41:08Z","updated_at":"2015-03-18T23:11:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3293e3386514ed3725d744d47cdffd81c6a296f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/phosphorjs/phosphor/pulls/1/commits","review_comments_url":"https://api.github.com/repos/phosphorjs/phosphor/pulls/1/comments","review_comment_url":"https://api.github.com/repos/phosphorjs/phosphor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phosphorjs/phosphor/issues/1/comments","statuses_url":"https://api.github.com/repos/phosphorjs/phosphor/statuses/eae6cfd893e96820d9c1b45532d0ab95e17ff846","head":{"label":"ellisonbg:codemirror-comp","ref":"codemirror-comp","sha":"eae6cfd893e96820d9c1b45532d0ab95e17ff846","user":{"login":"ellisonbg","id":27600,"avatar_url":"https://avatars.githubusercontent.com/u/27600?v=3","gravatar_id":"","url":"https://api.github.com/users/ellisonbg","html_url":"https://github.com/ellisonbg","followers_url":"https://api.github.com/users/ellisonbg/followers","following_url":"https://api.github.com/users/ellisonbg/following{/other_user}","gists_url":"https://api.github.com/users/ellisonbg/gists{/gist_id}","starred_url":"https://api.github.com/users/ellisonbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellisonbg/subscriptions","organizations_url":"https://api.github.com/users/ellisonbg/orgs","repos_url":"https://api.github.com/users/ellisonbg/repos","events_url":"https://api.github.com/users/ellisonbg/events{/privacy}","received_events_url":"https://api.github.com/users/ellisonbg/received_events","type":"User","site_admin":false},"repo":{"id":32464999,"name":"phosphor","full_name":"ellisonbg/phosphor","owner":{"login":"ellisonbg","id":27600,"avatar_url":"https://avatars.githubusercontent.com/u/27600?v=3","gravatar_id":"","url":"https://api.github.com/users/ellisonbg","html_url":"https://github.com/ellisonbg","followers_url":"https://api.github.com/users/ellisonbg/followers","following_url":"https://api.github.com/users/ellisonbg/following{/other_user}","gists_url":"https://api.github.com/users/ellisonbg/gists{/gist_id}","starred_url":"https://api.github.com/users/ellisonbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellisonbg/subscriptions","organizations_url":"https://api.github.com/users/ellisonbg/orgs","repos_url":"https://api.github.com/users/ellisonbg/repos","events_url":"https://api.github.com/users/ellisonbg/events{/privacy}","received_events_url":"https://api.github.com/users/ellisonbg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ellisonbg/phosphor","description":"The PhosphorJS library","fork":true,"url":"https://api.github.com/repos/ellisonbg/phosphor","forks_url":"https://api.github.com/repos/ellisonbg/phosphor/forks","keys_url":"https://api.github.com/repos/ellisonbg/phosphor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ellisonbg/phosphor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ellisonbg/phosphor/teams","hooks_url":"https://api.github.com/repos/ellisonbg/phosphor/hooks","issue_events_url":"https://api.github.com/repos/ellisonbg/phosphor/issues/events{/number}","events_url":"https://api.github.com/repos/ellisonbg/phosphor/events","assignees_url":"https://api.github.com/repos/ellisonbg/phosphor/assignees{/user}","branches_url":"https://api.github.com/repos/ellisonbg/phosphor/branches{/branch}","tags_url":"https://api.github.com/repos/ellisonbg/phosphor/tags","blobs_url":"https://api.github.com/repos/ellisonbg/phosphor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ellisonbg/phosphor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ellisonbg/phosphor/git/refs{/sha}","trees_url":"https://api.github.com/repos/ellisonbg/phosphor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ellisonbg/phosphor/statuses/{sha}","languages_url":"https://api.github.com/repos/ellisonbg/phosphor/languages","stargazers_url":"https://api.github.com/repos/ellisonbg/phosphor/stargazers","contributors_url":"https://api.github.com/repos/ellisonbg/phosphor/contributors","subscribers_url":"https://api.github.com/repos/ellisonbg/phosphor/subscribers","subscription_url":"https://api.github.com/repos/ellisonbg/phosphor/subscription","commits_url":"https://api.github.com/repos/ellisonbg/phosphor/commits{/sha}","git_commits_url":"https://api.github.com/repos/ellisonbg/phosphor/git/commits{/sha}","comments_url":"https://api.github.com/repos/ellisonbg/phosphor/comments{/number}","issue_comment_url":"https://api.github.com/repos/ellisonbg/phosphor/issues/comments{/number}","contents_url":"https://api.github.com/repos/ellisonbg/phosphor/contents/{+path}","compare_url":"https://api.github.com/repos/ellisonbg/phosphor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ellisonbg/phosphor/merges","archive_url":"https://api.github.com/repos/ellisonbg/phosphor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ellisonbg/phosphor/downloads","issues_url":"https://api.github.com/repos/ellisonbg/phosphor/issues{/number}","pulls_url":"https://api.github.com/repos/ellisonbg/phosphor/pulls{/number}","milestones_url":"https://api.github.com/repos/ellisonbg/phosphor/milestones{/number}","notifications_url":"https://api.github.com/repos/ellisonbg/phosphor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ellisonbg/phosphor/labels{/name}","releases_url":"https://api.github.com/repos/ellisonbg/phosphor/releases{/id}","created_at":"2015-03-18T14:51:10Z","updated_at":"2015-03-18T18:47:49Z","pushed_at":"2015-03-18T22:25:56Z","git_url":"git://github.com/ellisonbg/phosphor.git","ssh_url":"git@github.com:ellisonbg/phosphor.git","clone_url":"https://github.com/ellisonbg/phosphor.git","svn_url":"https://github.com/ellisonbg/phosphor","homepage":null,"size":411,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"phosphorjs:master","ref":"master","sha":"5ef65fdda8ef72403d6902f9ef3d0ed9cf0270aa","user":{"login":"phosphorjs","id":9534026,"avatar_url":"https://avatars.githubusercontent.com/u/9534026?v=3","gravatar_id":"","url":"https://api.github.com/users/phosphorjs","html_url":"https://github.com/phosphorjs","followers_url":"https://api.github.com/users/phosphorjs/followers","following_url":"https://api.github.com/users/phosphorjs/following{/other_user}","gists_url":"https://api.github.com/users/phosphorjs/gists{/gist_id}","starred_url":"https://api.github.com/users/phosphorjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phosphorjs/subscriptions","organizations_url":"https://api.github.com/users/phosphorjs/orgs","repos_url":"https://api.github.com/users/phosphorjs/repos","events_url":"https://api.github.com/users/phosphorjs/events{/privacy}","received_events_url":"https://api.github.com/users/phosphorjs/received_events","type":"Organization","site_admin":false},"repo":{"id":31988820,"name":"phosphor","full_name":"phosphorjs/phosphor","owner":{"login":"phosphorjs","id":9534026,"avatar_url":"https://avatars.githubusercontent.com/u/9534026?v=3","gravatar_id":"","url":"https://api.github.com/users/phosphorjs","html_url":"https://github.com/phosphorjs","followers_url":"https://api.github.com/users/phosphorjs/followers","following_url":"https://api.github.com/users/phosphorjs/following{/other_user}","gists_url":"https://api.github.com/users/phosphorjs/gists{/gist_id}","starred_url":"https://api.github.com/users/phosphorjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phosphorjs/subscriptions","organizations_url":"https://api.github.com/users/phosphorjs/orgs","repos_url":"https://api.github.com/users/phosphorjs/repos","events_url":"https://api.github.com/users/phosphorjs/events{/privacy}","received_events_url":"https://api.github.com/users/phosphorjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phosphorjs/phosphor","description":"The PhosphorJS library","fork":false,"url":"https://api.github.com/repos/phosphorjs/phosphor","forks_url":"https://api.github.com/repos/phosphorjs/phosphor/forks","keys_url":"https://api.github.com/repos/phosphorjs/phosphor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phosphorjs/phosphor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phosphorjs/phosphor/teams","hooks_url":"https://api.github.com/repos/phosphorjs/phosphor/hooks","issue_events_url":"https://api.github.com/repos/phosphorjs/phosphor/issues/events{/number}","events_url":"https://api.github.com/repos/phosphorjs/phosphor/events","assignees_url":"https://api.github.com/repos/phosphorjs/phosphor/assignees{/user}","branches_url":"https://api.github.com/repos/phosphorjs/phosphor/branches{/branch}","tags_url":"https://api.github.com/repos/phosphorjs/phosphor/tags","blobs_url":"https://api.github.com/repos/phosphorjs/phosphor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phosphorjs/phosphor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phosphorjs/phosphor/git/refs{/sha}","trees_url":"https://api.github.com/repos/phosphorjs/phosphor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phosphorjs/phosphor/statuses/{sha}","languages_url":"https://api.github.com/repos/phosphorjs/phosphor/languages","stargazers_url":"https://api.github.com/repos/phosphorjs/phosphor/stargazers","contributors_url":"https://api.github.com/repos/phosphorjs/phosphor/contributors","subscribers_url":"https://api.github.com/repos/phosphorjs/phosphor/subscribers","subscription_url":"https://api.github.com/repos/phosphorjs/phosphor/subscription","commits_url":"https://api.github.com/repos/phosphorjs/phosphor/commits{/sha}","git_commits_url":"https://api.github.com/repos/phosphorjs/phosphor/git/commits{/sha}","comments_url":"https://api.github.com/repos/phosphorjs/phosphor/comments{/number}","issue_comment_url":"https://api.github.com/repos/phosphorjs/phosphor/issues/comments{/number}","contents_url":"https://api.github.com/repos/phosphorjs/phosphor/contents/{+path}","compare_url":"https://api.github.com/repos/phosphorjs/phosphor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phosphorjs/phosphor/merges","archive_url":"https://api.github.com/repos/phosphorjs/phosphor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phosphorjs/phosphor/downloads","issues_url":"https://api.github.com/repos/phosphorjs/phosphor/issues{/number}","pulls_url":"https://api.github.com/repos/phosphorjs/phosphor/pulls{/number}","milestones_url":"https://api.github.com/repos/phosphorjs/phosphor/milestones{/number}","notifications_url":"https://api.github.com/repos/phosphorjs/phosphor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phosphorjs/phosphor/labels{/name}","releases_url":"https://api.github.com/repos/phosphorjs/phosphor/releases{/id}","created_at":"2015-03-11T00:07:20Z","updated_at":"2015-03-18T14:55:12Z","pushed_at":"2015-03-18T14:55:12Z","git_url":"git://github.com/phosphorjs/phosphor.git","ssh_url":"git@github.com:phosphorjs/phosphor.git","clone_url":"https://github.com/phosphorjs/phosphor.git","svn_url":"https://github.com/phosphorjs/phosphor","homepage":null,"size":411,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phosphorjs/phosphor/pulls/1"},"html":{"href":"https://github.com/phosphorjs/phosphor/pull/1"},"issue":{"href":"https://api.github.com/repos/phosphorjs/phosphor/issues/1"},"comments":{"href":"https://api.github.com/repos/phosphorjs/phosphor/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/phosphorjs/phosphor/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/phosphorjs/phosphor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phosphorjs/phosphor/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/phosphorjs/phosphor/statuses/eae6cfd893e96820d9c1b45532d0ab95e17ff846"}}}}