{"action":"created","comment":{"url":"https://api.github.com/repos/ga-dc/timer_js/pulls/comments/42692518","id":42692518,"diff_hunk":"@@ -1,4 +1,36 @@\n+var resetB=document.querySelector('#reset');\n+var startB=document.querySelector('#start');\n+var pauseB=document.querySelector('#pause');\n+var seconds;\n+var timerId;\n \n+resetB.addEventListener(\"click\", resetTimer);\n+startB.addEventListener(\"click\", startTimer);\n+pauseB.addEventListener(\"click\", stopTiming);\n+function startTimer(){\n+  startB.removeEventListener('click', clearInterval(timerId));","path":"timers.js","position":11,"original_position":11,"commit_id":"73f394b56e304fc6b4c3773f0de007c9041afd6c","original_commit_id":"73f394b56e304fc6b4c3773f0de007c9041afd6c","user":{"login":"jmas13","id":7882341,"avatar_url":"https://avatars.githubusercontent.com/u/7882341?v=3","gravatar_id":"","url":"https://api.github.com/users/jmas13","html_url":"https://github.com/jmas13","followers_url":"https://api.github.com/users/jmas13/followers","following_url":"https://api.github.com/users/jmas13/following{/other_user}","gists_url":"https://api.github.com/users/jmas13/gists{/gist_id}","starred_url":"https://api.github.com/users/jmas13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmas13/subscriptions","organizations_url":"https://api.github.com/users/jmas13/orgs","repos_url":"https://api.github.com/users/jmas13/repos","events_url":"https://api.github.com/users/jmas13/events{/privacy}","received_events_url":"https://api.github.com/users/jmas13/received_events","type":"User","site_admin":false},"body":"Look at [removeEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener). The removeEventListener isn't actually doing anything here. If we change this line to `clearInterval(timerId)` it will work just the same","created_at":"2015-10-21T22:39:09Z","updated_at":"2015-10-21T22:39:09Z","html_url":"https://github.com/ga-dc/timer_js/pull/87#discussion_r42692518","pull_request_url":"https://api.github.com/repos/ga-dc/timer_js/pulls/87","_links":{"self":{"href":"https://api.github.com/repos/ga-dc/timer_js/pulls/comments/42692518"},"html":{"href":"https://github.com/ga-dc/timer_js/pull/87#discussion_r42692518"},"pull_request":{"href":"https://api.github.com/repos/ga-dc/timer_js/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/ga-dc/timer_js/pulls/87","id":48284799,"html_url":"https://github.com/ga-dc/timer_js/pull/87","diff_url":"https://github.com/ga-dc/timer_js/pull/87.diff","patch_url":"https://github.com/ga-dc/timer_js/pull/87.patch","issue_url":"https://api.github.com/repos/ga-dc/timer_js/issues/87","number":87,"state":"open","locked":false,"title":"everything works good except NaN sometimes displays","user":{"login":"onesick","id":10982972,"avatar_url":"https://avatars.githubusercontent.com/u/10982972?v=3","gravatar_id":"","url":"https://api.github.com/users/onesick","html_url":"https://github.com/onesick","followers_url":"https://api.github.com/users/onesick/followers","following_url":"https://api.github.com/users/onesick/following{/other_user}","gists_url":"https://api.github.com/users/onesick/gists{/gist_id}","starred_url":"https://api.github.com/users/onesick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onesick/subscriptions","organizations_url":"https://api.github.com/users/onesick/orgs","repos_url":"https://api.github.com/users/onesick/repos","events_url":"https://api.github.com/users/onesick/events{/privacy}","received_events_url":"https://api.github.com/users/onesick/received_events","type":"User","site_admin":false},"body":"comfortable 4.5/5\r\ncompleteness 4.8/5\r\n\r\nwhen I click start for the first time it displays Nan, after that, the number shows. Can you please tell me how I can fix this?\r\n\r\nThank you.","created_at":"2015-10-21T03:35:54Z","updated_at":"2015-10-21T22:39:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e6df0ce0b20e4b402f948d6b0dc48a5410035cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-dc/timer_js/pulls/87/commits","review_comments_url":"https://api.github.com/repos/ga-dc/timer_js/pulls/87/comments","review_comment_url":"https://api.github.com/repos/ga-dc/timer_js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-dc/timer_js/issues/87/comments","statuses_url":"https://api.github.com/repos/ga-dc/timer_js/statuses/73f394b56e304fc6b4c3773f0de007c9041afd6c","head":{"label":"onesick:master","ref":"master","sha":"73f394b56e304fc6b4c3773f0de007c9041afd6c","user":{"login":"onesick","id":10982972,"avatar_url":"https://avatars.githubusercontent.com/u/10982972?v=3","gravatar_id":"","url":"https://api.github.com/users/onesick","html_url":"https://github.com/onesick","followers_url":"https://api.github.com/users/onesick/followers","following_url":"https://api.github.com/users/onesick/following{/other_user}","gists_url":"https://api.github.com/users/onesick/gists{/gist_id}","starred_url":"https://api.github.com/users/onesick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onesick/subscriptions","organizations_url":"https://api.github.com/users/onesick/orgs","repos_url":"https://api.github.com/users/onesick/repos","events_url":"https://api.github.com/users/onesick/events{/privacy}","received_events_url":"https://api.github.com/users/onesick/received_events","type":"User","site_admin":false},"repo":{"id":44551192,"name":"timer_js","full_name":"onesick/timer_js","owner":{"login":"onesick","id":10982972,"avatar_url":"https://avatars.githubusercontent.com/u/10982972?v=3","gravatar_id":"","url":"https://api.github.com/users/onesick","html_url":"https://github.com/onesick","followers_url":"https://api.github.com/users/onesick/followers","following_url":"https://api.github.com/users/onesick/following{/other_user}","gists_url":"https://api.github.com/users/onesick/gists{/gist_id}","starred_url":"https://api.github.com/users/onesick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onesick/subscriptions","organizations_url":"https://api.github.com/users/onesick/orgs","repos_url":"https://api.github.com/users/onesick/repos","events_url":"https://api.github.com/users/onesick/events{/privacy}","received_events_url":"https://api.github.com/users/onesick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/onesick/timer_js","description":"[javascript, dom]","fork":true,"url":"https://api.github.com/repos/onesick/timer_js","forks_url":"https://api.github.com/repos/onesick/timer_js/forks","keys_url":"https://api.github.com/repos/onesick/timer_js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onesick/timer_js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onesick/timer_js/teams","hooks_url":"https://api.github.com/repos/onesick/timer_js/hooks","issue_events_url":"https://api.github.com/repos/onesick/timer_js/issues/events{/number}","events_url":"https://api.github.com/repos/onesick/timer_js/events","assignees_url":"https://api.github.com/repos/onesick/timer_js/assignees{/user}","branches_url":"https://api.github.com/repos/onesick/timer_js/branches{/branch}","tags_url":"https://api.github.com/repos/onesick/timer_js/tags","blobs_url":"https://api.github.com/repos/onesick/timer_js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onesick/timer_js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onesick/timer_js/git/refs{/sha}","trees_url":"https://api.github.com/repos/onesick/timer_js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onesick/timer_js/statuses/{sha}","languages_url":"https://api.github.com/repos/onesick/timer_js/languages","stargazers_url":"https://api.github.com/repos/onesick/timer_js/stargazers","contributors_url":"https://api.github.com/repos/onesick/timer_js/contributors","subscribers_url":"https://api.github.com/repos/onesick/timer_js/subscribers","subscription_url":"https://api.github.com/repos/onesick/timer_js/subscription","commits_url":"https://api.github.com/repos/onesick/timer_js/commits{/sha}","git_commits_url":"https://api.github.com/repos/onesick/timer_js/git/commits{/sha}","comments_url":"https://api.github.com/repos/onesick/timer_js/comments{/number}","issue_comment_url":"https://api.github.com/repos/onesick/timer_js/issues/comments{/number}","contents_url":"https://api.github.com/repos/onesick/timer_js/contents/{+path}","compare_url":"https://api.github.com/repos/onesick/timer_js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onesick/timer_js/merges","archive_url":"https://api.github.com/repos/onesick/timer_js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onesick/timer_js/downloads","issues_url":"https://api.github.com/repos/onesick/timer_js/issues{/number}","pulls_url":"https://api.github.com/repos/onesick/timer_js/pulls{/number}","milestones_url":"https://api.github.com/repos/onesick/timer_js/milestones{/number}","notifications_url":"https://api.github.com/repos/onesick/timer_js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onesick/timer_js/labels{/name}","releases_url":"https://api.github.com/repos/onesick/timer_js/releases{/id}","created_at":"2015-10-19T17:23:24Z","updated_at":"2015-10-21T03:34:34Z","pushed_at":"2015-10-21T03:34:33Z","git_url":"git://github.com/onesick/timer_js.git","ssh_url":"git@github.com:onesick/timer_js.git","clone_url":"https://github.com/onesick/timer_js.git","svn_url":"https://github.com/onesick/timer_js","homepage":null,"size":88,"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":"ga-dc:master","ref":"master","sha":"afe87a8c145ee8bc0aa7b55bb29360a11d684098","user":{"login":"ga-dc","id":10747017,"avatar_url":"https://avatars.githubusercontent.com/u/10747017?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-dc","html_url":"https://github.com/ga-dc","followers_url":"https://api.github.com/users/ga-dc/followers","following_url":"https://api.github.com/users/ga-dc/following{/other_user}","gists_url":"https://api.github.com/users/ga-dc/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-dc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-dc/subscriptions","organizations_url":"https://api.github.com/users/ga-dc/orgs","repos_url":"https://api.github.com/users/ga-dc/repos","events_url":"https://api.github.com/users/ga-dc/events{/privacy}","received_events_url":"https://api.github.com/users/ga-dc/received_events","type":"Organization","site_admin":false},"repo":{"id":37617731,"name":"timer_js","full_name":"ga-dc/timer_js","owner":{"login":"ga-dc","id":10747017,"avatar_url":"https://avatars.githubusercontent.com/u/10747017?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-dc","html_url":"https://github.com/ga-dc","followers_url":"https://api.github.com/users/ga-dc/followers","following_url":"https://api.github.com/users/ga-dc/following{/other_user}","gists_url":"https://api.github.com/users/ga-dc/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-dc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-dc/subscriptions","organizations_url":"https://api.github.com/users/ga-dc/orgs","repos_url":"https://api.github.com/users/ga-dc/repos","events_url":"https://api.github.com/users/ga-dc/events{/privacy}","received_events_url":"https://api.github.com/users/ga-dc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-dc/timer_js","description":"[javascript, dom]","fork":false,"url":"https://api.github.com/repos/ga-dc/timer_js","forks_url":"https://api.github.com/repos/ga-dc/timer_js/forks","keys_url":"https://api.github.com/repos/ga-dc/timer_js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-dc/timer_js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-dc/timer_js/teams","hooks_url":"https://api.github.com/repos/ga-dc/timer_js/hooks","issue_events_url":"https://api.github.com/repos/ga-dc/timer_js/issues/events{/number}","events_url":"https://api.github.com/repos/ga-dc/timer_js/events","assignees_url":"https://api.github.com/repos/ga-dc/timer_js/assignees{/user}","branches_url":"https://api.github.com/repos/ga-dc/timer_js/branches{/branch}","tags_url":"https://api.github.com/repos/ga-dc/timer_js/tags","blobs_url":"https://api.github.com/repos/ga-dc/timer_js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-dc/timer_js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-dc/timer_js/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-dc/timer_js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-dc/timer_js/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-dc/timer_js/languages","stargazers_url":"https://api.github.com/repos/ga-dc/timer_js/stargazers","contributors_url":"https://api.github.com/repos/ga-dc/timer_js/contributors","subscribers_url":"https://api.github.com/repos/ga-dc/timer_js/subscribers","subscription_url":"https://api.github.com/repos/ga-dc/timer_js/subscription","commits_url":"https://api.github.com/repos/ga-dc/timer_js/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-dc/timer_js/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-dc/timer_js/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-dc/timer_js/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-dc/timer_js/contents/{+path}","compare_url":"https://api.github.com/repos/ga-dc/timer_js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-dc/timer_js/merges","archive_url":"https://api.github.com/repos/ga-dc/timer_js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-dc/timer_js/downloads","issues_url":"https://api.github.com/repos/ga-dc/timer_js/issues{/number}","pulls_url":"https://api.github.com/repos/ga-dc/timer_js/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-dc/timer_js/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-dc/timer_js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-dc/timer_js/labels{/name}","releases_url":"https://api.github.com/repos/ga-dc/timer_js/releases{/id}","created_at":"2015-06-17T20:00:01Z","updated_at":"2015-10-19T16:32:38Z","pushed_at":"2015-10-21T20:58:48Z","git_url":"git://github.com/ga-dc/timer_js.git","ssh_url":"git@github.com:ga-dc/timer_js.git","clone_url":"https://github.com/ga-dc/timer_js.git","svn_url":"https://github.com/ga-dc/timer_js","homepage":null,"size":1571,"stargazers_count":6,"watchers_count":6,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":111,"mirror_url":null,"open_issues_count":43,"forks":111,"open_issues":43,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-dc/timer_js/pulls/87"},"html":{"href":"https://github.com/ga-dc/timer_js/pull/87"},"issue":{"href":"https://api.github.com/repos/ga-dc/timer_js/issues/87"},"comments":{"href":"https://api.github.com/repos/ga-dc/timer_js/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-dc/timer_js/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-dc/timer_js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-dc/timer_js/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/ga-dc/timer_js/statuses/73f394b56e304fc6b4c3773f0de007c9041afd6c"}}}}