{"action":"created","comment":{"url":"https://api.github.com/repos/xtermjs/xterm.js/pulls/comments/176877327","pull_request_review_id":106664366,"id":176877327,"diff_hunk":"@@ -0,0 +1,28 @@\n+/**\n+ * Copyright (c) 2016 The xterm.js authors. All rights reserved.\n+ * @license MIT\n+ */\n+\n+/*\n+ * A simple utility for cloning values\n+ */\n+export const clone = <T>(val: T): T => {\n+  if (typeof val !== 'object') {\n+    return val;\n+  }\n+\n+  // cloning null always returns null\n+  if (val === null) {\n+    return null;\n+  }\n+\n+  // If we're cloning an array, use an array as the base, otherwise use an object\n+  const clonedObject: any = Array.isArray(val) ? [] : {};\n+\n+  for (const key in val) {\n+    // Recursively clone eack item\n+    clonedObject[key] = clone(val[key]);","path":"src/utils/Clone.ts","position":24,"original_position":24,"commit_id":"b275016573bf85a74c617afc2bd73df8db4b8c66","original_commit_id":"b275016573bf85a74c617afc2bd73df8db4b8c66","user":{"login":"Tyriar","id":2193314,"avatar_url":"https://avatars0.githubusercontent.com/u/2193314?v=4","gravatar_id":"","url":"https://api.github.com/users/Tyriar","html_url":"https://github.com/Tyriar","followers_url":"https://api.github.com/users/Tyriar/followers","following_url":"https://api.github.com/users/Tyriar/following{/other_user}","gists_url":"https://api.github.com/users/Tyriar/gists{/gist_id}","starred_url":"https://api.github.com/users/Tyriar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tyriar/subscriptions","organizations_url":"https://api.github.com/users/Tyriar/orgs","repos_url":"https://api.github.com/users/Tyriar/repos","events_url":"https://api.github.com/users/Tyriar/events{/privacy}","received_events_url":"https://api.github.com/users/Tyriar/received_events","type":"User","site_admin":false},"body":"@LucianBuzzo sounds good 👍 ","created_at":"2018-03-23T22:19:07Z","updated_at":"2018-03-23T22:19:07Z","html_url":"https://github.com/xtermjs/xterm.js/pull/1326#discussion_r176877327","pull_request_url":"https://api.github.com/repos/xtermjs/xterm.js/pulls/1326","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/xtermjs/xterm.js/pulls/comments/176877327"},"html":{"href":"https://github.com/xtermjs/xterm.js/pull/1326#discussion_r176877327"},"pull_request":{"href":"https://api.github.com/repos/xtermjs/xterm.js/pulls/1326"}},"in_reply_to_id":176465082},"pull_request":{"url":"https://api.github.com/repos/xtermjs/xterm.js/pulls/1326","id":174244107,"html_url":"https://github.com/xtermjs/xterm.js/pull/1326","diff_url":"https://github.com/xtermjs/xterm.js/pull/1326.diff","patch_url":"https://github.com/xtermjs/xterm.js/pull/1326.patch","issue_url":"https://api.github.com/repos/xtermjs/xterm.js/issues/1326","number":1326,"state":"open","locked":false,"title":"Do not mutate options object used in constructor","user":{"login":"LucianBuzzo","id":15064535,"avatar_url":"https://avatars0.githubusercontent.com/u/15064535?v=4","gravatar_id":"","url":"https://api.github.com/users/LucianBuzzo","html_url":"https://github.com/LucianBuzzo","followers_url":"https://api.github.com/users/LucianBuzzo/followers","following_url":"https://api.github.com/users/LucianBuzzo/following{/other_user}","gists_url":"https://api.github.com/users/LucianBuzzo/gists{/gist_id}","starred_url":"https://api.github.com/users/LucianBuzzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucianBuzzo/subscriptions","organizations_url":"https://api.github.com/users/LucianBuzzo/orgs","repos_url":"https://api.github.com/users/LucianBuzzo/repos","events_url":"https://api.github.com/users/LucianBuzzo/events{/privacy}","received_events_url":"https://api.github.com/users/LucianBuzzo/received_events","type":"User","site_admin":false},"body":"Connects to #1322\r\n\r\nchange-type: patch","created_at":"2018-03-11T21:40:58Z","updated_at":"2018-03-23T22:19:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"541b286925226e2679995d0aeeeebbb92ddda627","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/xtermjs/xterm.js/pulls/1326/commits","review_comments_url":"https://api.github.com/repos/xtermjs/xterm.js/pulls/1326/comments","review_comment_url":"https://api.github.com/repos/xtermjs/xterm.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xtermjs/xterm.js/issues/1326/comments","statuses_url":"https://api.github.com/repos/xtermjs/xterm.js/statuses/b275016573bf85a74c617afc2bd73df8db4b8c66","head":{"label":"LucianBuzzo:1322-options-clone","ref":"1322-options-clone","sha":"b275016573bf85a74c617afc2bd73df8db4b8c66","user":{"login":"LucianBuzzo","id":15064535,"avatar_url":"https://avatars0.githubusercontent.com/u/15064535?v=4","gravatar_id":"","url":"https://api.github.com/users/LucianBuzzo","html_url":"https://github.com/LucianBuzzo","followers_url":"https://api.github.com/users/LucianBuzzo/followers","following_url":"https://api.github.com/users/LucianBuzzo/following{/other_user}","gists_url":"https://api.github.com/users/LucianBuzzo/gists{/gist_id}","starred_url":"https://api.github.com/users/LucianBuzzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucianBuzzo/subscriptions","organizations_url":"https://api.github.com/users/LucianBuzzo/orgs","repos_url":"https://api.github.com/users/LucianBuzzo/repos","events_url":"https://api.github.com/users/LucianBuzzo/events{/privacy}","received_events_url":"https://api.github.com/users/LucianBuzzo/received_events","type":"User","site_admin":false},"repo":{"id":124800637,"name":"xterm.js","full_name":"LucianBuzzo/xterm.js","owner":{"login":"LucianBuzzo","id":15064535,"avatar_url":"https://avatars0.githubusercontent.com/u/15064535?v=4","gravatar_id":"","url":"https://api.github.com/users/LucianBuzzo","html_url":"https://github.com/LucianBuzzo","followers_url":"https://api.github.com/users/LucianBuzzo/followers","following_url":"https://api.github.com/users/LucianBuzzo/following{/other_user}","gists_url":"https://api.github.com/users/LucianBuzzo/gists{/gist_id}","starred_url":"https://api.github.com/users/LucianBuzzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucianBuzzo/subscriptions","organizations_url":"https://api.github.com/users/LucianBuzzo/orgs","repos_url":"https://api.github.com/users/LucianBuzzo/repos","events_url":"https://api.github.com/users/LucianBuzzo/events{/privacy}","received_events_url":"https://api.github.com/users/LucianBuzzo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LucianBuzzo/xterm.js","description":"Full xterm terminal, in your browser","fork":true,"url":"https://api.github.com/repos/LucianBuzzo/xterm.js","forks_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/forks","keys_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/teams","hooks_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/hooks","issue_events_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/issues/events{/number}","events_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/events","assignees_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/assignees{/user}","branches_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/branches{/branch}","tags_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/tags","blobs_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/statuses/{sha}","languages_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/languages","stargazers_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/stargazers","contributors_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/contributors","subscribers_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/subscribers","subscription_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/subscription","commits_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/contents/{+path}","compare_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/merges","archive_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/downloads","issues_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/issues{/number}","pulls_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/pulls{/number}","milestones_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/milestones{/number}","notifications_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/labels{/name}","releases_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/releases{/id}","deployments_url":"https://api.github.com/repos/LucianBuzzo/xterm.js/deployments","created_at":"2018-03-11T21:21:09Z","updated_at":"2018-03-14T13:03:30Z","pushed_at":"2018-03-21T10:35:12Z","git_url":"git://github.com/LucianBuzzo/xterm.js.git","ssh_url":"git@github.com:LucianBuzzo/xterm.js.git","clone_url":"https://github.com/LucianBuzzo/xterm.js.git","svn_url":"https://github.com/LucianBuzzo/xterm.js","homepage":"https://xtermjs.org/","size":4290,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xtermjs:master","ref":"master","sha":"888070830d8d1bc33f0aa9243de0a8608294fe4e","user":{"login":"xtermjs","id":11927490,"avatar_url":"https://avatars1.githubusercontent.com/u/11927490?v=4","gravatar_id":"","url":"https://api.github.com/users/xtermjs","html_url":"https://github.com/xtermjs","followers_url":"https://api.github.com/users/xtermjs/followers","following_url":"https://api.github.com/users/xtermjs/following{/other_user}","gists_url":"https://api.github.com/users/xtermjs/gists{/gist_id}","starred_url":"https://api.github.com/users/xtermjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtermjs/subscriptions","organizations_url":"https://api.github.com/users/xtermjs/orgs","repos_url":"https://api.github.com/users/xtermjs/repos","events_url":"https://api.github.com/users/xtermjs/events{/privacy}","received_events_url":"https://api.github.com/users/xtermjs/received_events","type":"Organization","site_admin":false},"repo":{"id":18068542,"name":"xterm.js","full_name":"xtermjs/xterm.js","owner":{"login":"xtermjs","id":11927490,"avatar_url":"https://avatars1.githubusercontent.com/u/11927490?v=4","gravatar_id":"","url":"https://api.github.com/users/xtermjs","html_url":"https://github.com/xtermjs","followers_url":"https://api.github.com/users/xtermjs/followers","following_url":"https://api.github.com/users/xtermjs/following{/other_user}","gists_url":"https://api.github.com/users/xtermjs/gists{/gist_id}","starred_url":"https://api.github.com/users/xtermjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtermjs/subscriptions","organizations_url":"https://api.github.com/users/xtermjs/orgs","repos_url":"https://api.github.com/users/xtermjs/repos","events_url":"https://api.github.com/users/xtermjs/events{/privacy}","received_events_url":"https://api.github.com/users/xtermjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xtermjs/xterm.js","description":"Full xterm terminal, in your browser","fork":false,"url":"https://api.github.com/repos/xtermjs/xterm.js","forks_url":"https://api.github.com/repos/xtermjs/xterm.js/forks","keys_url":"https://api.github.com/repos/xtermjs/xterm.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xtermjs/xterm.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xtermjs/xterm.js/teams","hooks_url":"https://api.github.com/repos/xtermjs/xterm.js/hooks","issue_events_url":"https://api.github.com/repos/xtermjs/xterm.js/issues/events{/number}","events_url":"https://api.github.com/repos/xtermjs/xterm.js/events","assignees_url":"https://api.github.com/repos/xtermjs/xterm.js/assignees{/user}","branches_url":"https://api.github.com/repos/xtermjs/xterm.js/branches{/branch}","tags_url":"https://api.github.com/repos/xtermjs/xterm.js/tags","blobs_url":"https://api.github.com/repos/xtermjs/xterm.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xtermjs/xterm.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xtermjs/xterm.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/xtermjs/xterm.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xtermjs/xterm.js/statuses/{sha}","languages_url":"https://api.github.com/repos/xtermjs/xterm.js/languages","stargazers_url":"https://api.github.com/repos/xtermjs/xterm.js/stargazers","contributors_url":"https://api.github.com/repos/xtermjs/xterm.js/contributors","subscribers_url":"https://api.github.com/repos/xtermjs/xterm.js/subscribers","subscription_url":"https://api.github.com/repos/xtermjs/xterm.js/subscription","commits_url":"https://api.github.com/repos/xtermjs/xterm.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/xtermjs/xterm.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/xtermjs/xterm.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/xtermjs/xterm.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/xtermjs/xterm.js/contents/{+path}","compare_url":"https://api.github.com/repos/xtermjs/xterm.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xtermjs/xterm.js/merges","archive_url":"https://api.github.com/repos/xtermjs/xterm.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xtermjs/xterm.js/downloads","issues_url":"https://api.github.com/repos/xtermjs/xterm.js/issues{/number}","pulls_url":"https://api.github.com/repos/xtermjs/xterm.js/pulls{/number}","milestones_url":"https://api.github.com/repos/xtermjs/xterm.js/milestones{/number}","notifications_url":"https://api.github.com/repos/xtermjs/xterm.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xtermjs/xterm.js/labels{/name}","releases_url":"https://api.github.com/repos/xtermjs/xterm.js/releases{/id}","deployments_url":"https://api.github.com/repos/xtermjs/xterm.js/deployments","created_at":"2014-03-24T16:04:04Z","updated_at":"2018-03-23T13:41:25Z","pushed_at":"2018-03-23T05:51:11Z","git_url":"git://github.com/xtermjs/xterm.js.git","ssh_url":"git@github.com:xtermjs/xterm.js.git","clone_url":"https://github.com/xtermjs/xterm.js.git","svn_url":"https://github.com/xtermjs/xterm.js","homepage":"https://xtermjs.org/","size":4336,"stargazers_count":3369,"watchers_count":3369,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":372,"mirror_url":null,"archived":false,"open_issues_count":163,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":372,"open_issues":163,"watchers":3369,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xtermjs/xterm.js/pulls/1326"},"html":{"href":"https://github.com/xtermjs/xterm.js/pull/1326"},"issue":{"href":"https://api.github.com/repos/xtermjs/xterm.js/issues/1326"},"comments":{"href":"https://api.github.com/repos/xtermjs/xterm.js/issues/1326/comments"},"review_comments":{"href":"https://api.github.com/repos/xtermjs/xterm.js/pulls/1326/comments"},"review_comment":{"href":"https://api.github.com/repos/xtermjs/xterm.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xtermjs/xterm.js/pulls/1326/commits"},"statuses":{"href":"https://api.github.com/repos/xtermjs/xterm.js/statuses/b275016573bf85a74c617afc2bd73df8db4b8c66"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Tyriar"}}