{"action":"created","comment":{"url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/comments/36535256","id":36535256,"diff_hunk":"@@ -0,0 +1,107 @@\n+import {\n+    Transformime,\n+    TextTransformer,\n+    ImageTransformer,\n+    HTMLTransformer\n+} from \"transformime\";\n+\n+import {\n+    consoleTextTransform,\n+    markdownTransform,\n+    LaTeXTransform,\n+    PDFTransform\n+} from \"transformime-jupyter-transformers\";\n+\n+/**\n+ * Displays output area state.\n+ */\n+export class OutputView {\n+    \n+    /**\n+     * Public constructor\n+     * @param  {IOutputModel} model    output model that this view represents\n+     * @param  {Document}     document handle to the Document instance that \n+     *                                 the output will be rendered in.\n+     */\n+    constructor(model, document) {\n+        this.model = model;\n+        Object.defineProperty(this, 'document', {get: () => document});\n+        Object.defineProperty(this, 'el', {get: () => document.createElement('div')});","path":"src/output-view.js","position":29,"original_position":29,"commit_id":"4bf84c1ffa095ce84f8df08c389d606a2c9488ed","original_commit_id":"4bf84c1ffa095ce84f8df08c389d606a2c9488ed","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"body":"For some reason, my comment didn't post. Weird.\r\n\r\nDoes this create an element every time `this.el` is called?","created_at":"2015-08-07T16:24:46Z","updated_at":"2015-08-07T16:24:46Z","html_url":"https://github.com/jupyter/jupyter-js-output-area/pull/1#discussion_r36535256","pull_request_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/comments/36535256"},"html":{"href":"https://github.com/jupyter/jupyter-js-output-area/pull/1#discussion_r36535256"},"pull_request":{"href":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/1","id":41196723,"html_url":"https://github.com/jupyter/jupyter-js-output-area/pull/1","diff_url":"https://github.com/jupyter/jupyter-js-output-area/pull/1.diff","patch_url":"https://github.com/jupyter/jupyter-js-output-area/pull/1.patch","issue_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/issues/1","number":1,"state":"open","locked":false,"title":"Initial design","user":{"login":"jdfreder","id":3292874,"avatar_url":"https://avatars.githubusercontent.com/u/3292874?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfreder","html_url":"https://github.com/jdfreder","followers_url":"https://api.github.com/users/jdfreder/followers","following_url":"https://api.github.com/users/jdfreder/following{/other_user}","gists_url":"https://api.github.com/users/jdfreder/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfreder/subscriptions","organizations_url":"https://api.github.com/users/jdfreder/orgs","repos_url":"https://api.github.com/users/jdfreder/repos","events_url":"https://api.github.com/users/jdfreder/events{/privacy}","received_events_url":"https://api.github.com/users/jdfreder/received_events","type":"User","site_admin":false},"body":"Just allowing people to see what I'm up to.  There's still a lot to do here, and this isn't even the design I want to settle with.","created_at":"2015-07-30T04:15:33Z","updated_at":"2015-08-07T16:24:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff421c40eca78f5249e954bdec6061325028d7e6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/issues/1/comments","statuses_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/statuses/4bf84c1ffa095ce84f8df08c389d606a2c9488ed","head":{"label":"jdfreder:master","ref":"master","sha":"4bf84c1ffa095ce84f8df08c389d606a2c9488ed","user":{"login":"jdfreder","id":3292874,"avatar_url":"https://avatars.githubusercontent.com/u/3292874?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfreder","html_url":"https://github.com/jdfreder","followers_url":"https://api.github.com/users/jdfreder/followers","following_url":"https://api.github.com/users/jdfreder/following{/other_user}","gists_url":"https://api.github.com/users/jdfreder/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfreder/subscriptions","organizations_url":"https://api.github.com/users/jdfreder/orgs","repos_url":"https://api.github.com/users/jdfreder/repos","events_url":"https://api.github.com/users/jdfreder/events{/privacy}","received_events_url":"https://api.github.com/users/jdfreder/received_events","type":"User","site_admin":false},"repo":{"id":39862575,"name":"jupyter-js-output-area","full_name":"jdfreder/jupyter-js-output-area","owner":{"login":"jdfreder","id":3292874,"avatar_url":"https://avatars.githubusercontent.com/u/3292874?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfreder","html_url":"https://github.com/jdfreder","followers_url":"https://api.github.com/users/jdfreder/followers","following_url":"https://api.github.com/users/jdfreder/following{/other_user}","gists_url":"https://api.github.com/users/jdfreder/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfreder/subscriptions","organizations_url":"https://api.github.com/users/jdfreder/orgs","repos_url":"https://api.github.com/users/jdfreder/repos","events_url":"https://api.github.com/users/jdfreder/events{/privacy}","received_events_url":"https://api.github.com/users/jdfreder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jdfreder/jupyter-js-output-area","description":"Javascript APIs for Jupyter output areas","fork":true,"url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area","forks_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/forks","keys_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/teams","hooks_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/hooks","issue_events_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/issues/events{/number}","events_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/events","assignees_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/assignees{/user}","branches_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/branches{/branch}","tags_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/tags","blobs_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/statuses/{sha}","languages_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/languages","stargazers_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/stargazers","contributors_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/contributors","subscribers_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/subscribers","subscription_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/subscription","commits_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/issues/comments{/number}","contents_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/contents/{+path}","compare_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/merges","archive_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/downloads","issues_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/issues{/number}","pulls_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/pulls{/number}","milestones_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/milestones{/number}","notifications_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/labels{/name}","releases_url":"https://api.github.com/repos/jdfreder/jupyter-js-output-area/releases{/id}","created_at":"2015-07-28T23:24:16Z","updated_at":"2015-08-07T00:25:59Z","pushed_at":"2015-08-07T16:18:07Z","git_url":"git://github.com/jdfreder/jupyter-js-output-area.git","ssh_url":"git@github.com:jdfreder/jupyter-js-output-area.git","clone_url":"https://github.com/jdfreder/jupyter-js-output-area.git","svn_url":"https://github.com/jdfreder/jupyter-js-output-area","homepage":null,"size":98,"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":"jupyter:master","ref":"master","sha":"b6ad9300712f4b742c42e174ff345fc27dbe903d","user":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"repo":{"id":39586540,"name":"jupyter-js-output-area","full_name":"jupyter/jupyter-js-output-area","owner":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jupyter/jupyter-js-output-area","description":"Javascript APIs for Jupyter output areas","fork":false,"url":"https://api.github.com/repos/jupyter/jupyter-js-output-area","forks_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/forks","keys_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/teams","hooks_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/hooks","issue_events_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/issues/events{/number}","events_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/events","assignees_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/assignees{/user}","branches_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/branches{/branch}","tags_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/tags","blobs_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/git/refs{/sha}","trees_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/statuses/{sha}","languages_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/languages","stargazers_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/stargazers","contributors_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/contributors","subscribers_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/subscribers","subscription_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/subscription","commits_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/commits{/sha}","git_commits_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/git/commits{/sha}","comments_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/comments{/number}","issue_comment_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/issues/comments{/number}","contents_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/contents/{+path}","compare_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/merges","archive_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/downloads","issues_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/issues{/number}","pulls_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls{/number}","milestones_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/milestones{/number}","notifications_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/labels{/name}","releases_url":"https://api.github.com/repos/jupyter/jupyter-js-output-area/releases{/id}","created_at":"2015-07-23T19:06:29Z","updated_at":"2015-07-23T22:37:59Z","pushed_at":"2015-08-07T16:18:08Z","git_url":"git://github.com/jupyter/jupyter-js-output-area.git","ssh_url":"git@github.com:jupyter/jupyter-js-output-area.git","clone_url":"https://github.com/jupyter/jupyter-js-output-area.git","svn_url":"https://github.com/jupyter/jupyter-js-output-area","homepage":null,"size":218,"stargazers_count":1,"watchers_count":1,"language":null,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/1"},"html":{"href":"https://github.com/jupyter/jupyter-js-output-area/pull/1"},"issue":{"href":"https://api.github.com/repos/jupyter/jupyter-js-output-area/issues/1"},"comments":{"href":"https://api.github.com/repos/jupyter/jupyter-js-output-area/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jupyter/jupyter-js-output-area/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jupyter/jupyter-js-output-area/statuses/4bf84c1ffa095ce84f8df08c389d606a2c9488ed"}}}}