{"action":"created","comment":{"url":"https://api.github.com/repos/choheekim/testem/pulls/comments/225329628","pull_request_review_id":164908695,"id":225329628,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTMyOTYyOA==","diff_hunk":"@@ -186,6 +186,28 @@ var Testem = {\n     }\n     this.evtHandlers[evt].push(callback);\n   },\n+  once: function(evt, callback) {\n+    if (!this.evtHandlers) {\n+      this.evtHandlers = {};\n+    }\n+    if (!this.evtHandlers[evt]) {\n+      this.evtHandlers[evt] = [];\n+    }\n+    const callbackIndex = this.evtHandlers[evt].length;\n+    let wrapper = function(){","path":"public/testem/testem_client.js","position":12,"original_position":12,"commit_id":"16ef394c361eec8567c203ffa16bbcc92ba71453","original_commit_id":"16ef394c361eec8567c203ffa16bbcc92ba71453","user":{"login":"step2yeung","id":9669889,"node_id":"MDQ6VXNlcjk2Njk4ODk=","avatar_url":"https://avatars3.githubusercontent.com/u/9669889?v=4","gravatar_id":"","url":"https://api.github.com/users/step2yeung","html_url":"https://github.com/step2yeung","followers_url":"https://api.github.com/users/step2yeung/followers","following_url":"https://api.github.com/users/step2yeung/following{/other_user}","gists_url":"https://api.github.com/users/step2yeung/gists{/gist_id}","starred_url":"https://api.github.com/users/step2yeung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/step2yeung/subscriptions","organizations_url":"https://api.github.com/users/step2yeung/orgs","repos_url":"https://api.github.com/users/step2yeung/repos","events_url":"https://api.github.com/users/step2yeung/events{/privacy}","received_events_url":"https://api.github.com/users/step2yeung/received_events","type":"User","site_admin":false},"body":"use `var` instead of `let` and `const` in the meantime, so that we are consistent with the rest of the file. I don't remember what the browser support is for testem, but anything IE10 and older doesnt support `let` or `const` at all.","created_at":"2018-10-15T21:53:37Z","updated_at":"2018-10-15T21:55:38Z","html_url":"https://github.com/choheekim/testem/pull/1#discussion_r225329628","pull_request_url":"https://api.github.com/repos/choheekim/testem/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/choheekim/testem/pulls/comments/225329628"},"html":{"href":"https://github.com/choheekim/testem/pull/1#discussion_r225329628"},"pull_request":{"href":"https://api.github.com/repos/choheekim/testem/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/choheekim/testem/pulls/1","id":221216602,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMjE2NjAy","html_url":"https://github.com/choheekim/testem/pull/1","diff_url":"https://github.com/choheekim/testem/pull/1.diff","patch_url":"https://github.com/choheekim/testem/pull/1.patch","issue_url":"https://api.github.com/repos/choheekim/testem/issues/1","number":1,"state":"open","locked":false,"title":"register events defined in additionalBrowserSocketEvents and send events to the browser side","user":{"login":"choheekim","id":11324746,"node_id":"MDQ6VXNlcjExMzI0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/11324746?v=4","gravatar_id":"","url":"https://api.github.com/users/choheekim","html_url":"https://github.com/choheekim","followers_url":"https://api.github.com/users/choheekim/followers","following_url":"https://api.github.com/users/choheekim/following{/other_user}","gists_url":"https://api.github.com/users/choheekim/gists{/gist_id}","starred_url":"https://api.github.com/users/choheekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choheekim/subscriptions","organizations_url":"https://api.github.com/users/choheekim/orgs","repos_url":"https://api.github.com/users/choheekim/repos","events_url":"https://api.github.com/users/choheekim/events{/privacy}","received_events_url":"https://api.github.com/users/choheekim/received_events","type":"User","site_admin":false},"body":"register events defined in additionalBrowserSocketEvents and send events to the browser side","created_at":"2018-10-08T19:14:54Z","updated_at":"2018-10-15T21:55:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6dee3369d2cef03a02507ae32b63551319f58cc7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/choheekim/testem/pulls/1/commits","review_comments_url":"https://api.github.com/repos/choheekim/testem/pulls/1/comments","review_comment_url":"https://api.github.com/repos/choheekim/testem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/choheekim/testem/issues/1/comments","statuses_url":"https://api.github.com/repos/choheekim/testem/statuses/16ef394c361eec8567c203ffa16bbcc92ba71453","head":{"label":"choheekim:event_handling","ref":"event_handling","sha":"16ef394c361eec8567c203ffa16bbcc92ba71453","user":{"login":"choheekim","id":11324746,"node_id":"MDQ6VXNlcjExMzI0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/11324746?v=4","gravatar_id":"","url":"https://api.github.com/users/choheekim","html_url":"https://github.com/choheekim","followers_url":"https://api.github.com/users/choheekim/followers","following_url":"https://api.github.com/users/choheekim/following{/other_user}","gists_url":"https://api.github.com/users/choheekim/gists{/gist_id}","starred_url":"https://api.github.com/users/choheekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choheekim/subscriptions","organizations_url":"https://api.github.com/users/choheekim/orgs","repos_url":"https://api.github.com/users/choheekim/repos","events_url":"https://api.github.com/users/choheekim/events{/privacy}","received_events_url":"https://api.github.com/users/choheekim/received_events","type":"User","site_admin":false},"repo":{"id":152131517,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIxMzE1MTc=","name":"testem","full_name":"choheekim/testem","private":false,"owner":{"login":"choheekim","id":11324746,"node_id":"MDQ6VXNlcjExMzI0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/11324746?v=4","gravatar_id":"","url":"https://api.github.com/users/choheekim","html_url":"https://github.com/choheekim","followers_url":"https://api.github.com/users/choheekim/followers","following_url":"https://api.github.com/users/choheekim/following{/other_user}","gists_url":"https://api.github.com/users/choheekim/gists{/gist_id}","starred_url":"https://api.github.com/users/choheekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choheekim/subscriptions","organizations_url":"https://api.github.com/users/choheekim/orgs","repos_url":"https://api.github.com/users/choheekim/repos","events_url":"https://api.github.com/users/choheekim/events{/privacy}","received_events_url":"https://api.github.com/users/choheekim/received_events","type":"User","site_admin":false},"html_url":"https://github.com/choheekim/testem","description":"Test'em 'Scripts! A test runner that makes Javascript unit testing fun.","fork":true,"url":"https://api.github.com/repos/choheekim/testem","forks_url":"https://api.github.com/repos/choheekim/testem/forks","keys_url":"https://api.github.com/repos/choheekim/testem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/choheekim/testem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/choheekim/testem/teams","hooks_url":"https://api.github.com/repos/choheekim/testem/hooks","issue_events_url":"https://api.github.com/repos/choheekim/testem/issues/events{/number}","events_url":"https://api.github.com/repos/choheekim/testem/events","assignees_url":"https://api.github.com/repos/choheekim/testem/assignees{/user}","branches_url":"https://api.github.com/repos/choheekim/testem/branches{/branch}","tags_url":"https://api.github.com/repos/choheekim/testem/tags","blobs_url":"https://api.github.com/repos/choheekim/testem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/choheekim/testem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/choheekim/testem/git/refs{/sha}","trees_url":"https://api.github.com/repos/choheekim/testem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/choheekim/testem/statuses/{sha}","languages_url":"https://api.github.com/repos/choheekim/testem/languages","stargazers_url":"https://api.github.com/repos/choheekim/testem/stargazers","contributors_url":"https://api.github.com/repos/choheekim/testem/contributors","subscribers_url":"https://api.github.com/repos/choheekim/testem/subscribers","subscription_url":"https://api.github.com/repos/choheekim/testem/subscription","commits_url":"https://api.github.com/repos/choheekim/testem/commits{/sha}","git_commits_url":"https://api.github.com/repos/choheekim/testem/git/commits{/sha}","comments_url":"https://api.github.com/repos/choheekim/testem/comments{/number}","issue_comment_url":"https://api.github.com/repos/choheekim/testem/issues/comments{/number}","contents_url":"https://api.github.com/repos/choheekim/testem/contents/{+path}","compare_url":"https://api.github.com/repos/choheekim/testem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/choheekim/testem/merges","archive_url":"https://api.github.com/repos/choheekim/testem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/choheekim/testem/downloads","issues_url":"https://api.github.com/repos/choheekim/testem/issues{/number}","pulls_url":"https://api.github.com/repos/choheekim/testem/pulls{/number}","milestones_url":"https://api.github.com/repos/choheekim/testem/milestones{/number}","notifications_url":"https://api.github.com/repos/choheekim/testem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/choheekim/testem/labels{/name}","releases_url":"https://api.github.com/repos/choheekim/testem/releases{/id}","deployments_url":"https://api.github.com/repos/choheekim/testem/deployments","created_at":"2018-10-08T19:03:18Z","updated_at":"2018-10-08T19:03:21Z","pushed_at":"2018-10-10T23:56:59Z","git_url":"git://github.com/choheekim/testem.git","ssh_url":"git@github.com:choheekim/testem.git","clone_url":"https://github.com/choheekim/testem.git","svn_url":"https://github.com/choheekim/testem","homepage":"","size":38330,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"choheekim:master","ref":"master","sha":"52207bbab0812e17a681dc3256b5ce770ec4ff8e","user":{"login":"choheekim","id":11324746,"node_id":"MDQ6VXNlcjExMzI0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/11324746?v=4","gravatar_id":"","url":"https://api.github.com/users/choheekim","html_url":"https://github.com/choheekim","followers_url":"https://api.github.com/users/choheekim/followers","following_url":"https://api.github.com/users/choheekim/following{/other_user}","gists_url":"https://api.github.com/users/choheekim/gists{/gist_id}","starred_url":"https://api.github.com/users/choheekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choheekim/subscriptions","organizations_url":"https://api.github.com/users/choheekim/orgs","repos_url":"https://api.github.com/users/choheekim/repos","events_url":"https://api.github.com/users/choheekim/events{/privacy}","received_events_url":"https://api.github.com/users/choheekim/received_events","type":"User","site_admin":false},"repo":{"id":152131517,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIxMzE1MTc=","name":"testem","full_name":"choheekim/testem","private":false,"owner":{"login":"choheekim","id":11324746,"node_id":"MDQ6VXNlcjExMzI0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/11324746?v=4","gravatar_id":"","url":"https://api.github.com/users/choheekim","html_url":"https://github.com/choheekim","followers_url":"https://api.github.com/users/choheekim/followers","following_url":"https://api.github.com/users/choheekim/following{/other_user}","gists_url":"https://api.github.com/users/choheekim/gists{/gist_id}","starred_url":"https://api.github.com/users/choheekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choheekim/subscriptions","organizations_url":"https://api.github.com/users/choheekim/orgs","repos_url":"https://api.github.com/users/choheekim/repos","events_url":"https://api.github.com/users/choheekim/events{/privacy}","received_events_url":"https://api.github.com/users/choheekim/received_events","type":"User","site_admin":false},"html_url":"https://github.com/choheekim/testem","description":"Test'em 'Scripts! A test runner that makes Javascript unit testing fun.","fork":true,"url":"https://api.github.com/repos/choheekim/testem","forks_url":"https://api.github.com/repos/choheekim/testem/forks","keys_url":"https://api.github.com/repos/choheekim/testem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/choheekim/testem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/choheekim/testem/teams","hooks_url":"https://api.github.com/repos/choheekim/testem/hooks","issue_events_url":"https://api.github.com/repos/choheekim/testem/issues/events{/number}","events_url":"https://api.github.com/repos/choheekim/testem/events","assignees_url":"https://api.github.com/repos/choheekim/testem/assignees{/user}","branches_url":"https://api.github.com/repos/choheekim/testem/branches{/branch}","tags_url":"https://api.github.com/repos/choheekim/testem/tags","blobs_url":"https://api.github.com/repos/choheekim/testem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/choheekim/testem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/choheekim/testem/git/refs{/sha}","trees_url":"https://api.github.com/repos/choheekim/testem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/choheekim/testem/statuses/{sha}","languages_url":"https://api.github.com/repos/choheekim/testem/languages","stargazers_url":"https://api.github.com/repos/choheekim/testem/stargazers","contributors_url":"https://api.github.com/repos/choheekim/testem/contributors","subscribers_url":"https://api.github.com/repos/choheekim/testem/subscribers","subscription_url":"https://api.github.com/repos/choheekim/testem/subscription","commits_url":"https://api.github.com/repos/choheekim/testem/commits{/sha}","git_commits_url":"https://api.github.com/repos/choheekim/testem/git/commits{/sha}","comments_url":"https://api.github.com/repos/choheekim/testem/comments{/number}","issue_comment_url":"https://api.github.com/repos/choheekim/testem/issues/comments{/number}","contents_url":"https://api.github.com/repos/choheekim/testem/contents/{+path}","compare_url":"https://api.github.com/repos/choheekim/testem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/choheekim/testem/merges","archive_url":"https://api.github.com/repos/choheekim/testem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/choheekim/testem/downloads","issues_url":"https://api.github.com/repos/choheekim/testem/issues{/number}","pulls_url":"https://api.github.com/repos/choheekim/testem/pulls{/number}","milestones_url":"https://api.github.com/repos/choheekim/testem/milestones{/number}","notifications_url":"https://api.github.com/repos/choheekim/testem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/choheekim/testem/labels{/name}","releases_url":"https://api.github.com/repos/choheekim/testem/releases{/id}","deployments_url":"https://api.github.com/repos/choheekim/testem/deployments","created_at":"2018-10-08T19:03:18Z","updated_at":"2018-10-08T19:03:21Z","pushed_at":"2018-10-10T23:56:59Z","git_url":"git://github.com/choheekim/testem.git","ssh_url":"git@github.com:choheekim/testem.git","clone_url":"https://github.com/choheekim/testem.git","svn_url":"https://github.com/choheekim/testem","homepage":"","size":38330,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/choheekim/testem/pulls/1"},"html":{"href":"https://github.com/choheekim/testem/pull/1"},"issue":{"href":"https://api.github.com/repos/choheekim/testem/issues/1"},"comments":{"href":"https://api.github.com/repos/choheekim/testem/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/choheekim/testem/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/choheekim/testem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/choheekim/testem/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/choheekim/testem/statuses/16ef394c361eec8567c203ffa16bbcc92ba71453"}},"author_association":"OWNER"}}
{"actor":{"display_login":"step2yeung"}}