{"action":"created","comment":{"url":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/comments/57449854","id":57449854,"diff_hunk":"@@ -29,14 +29,15 @@ AssessmentResult.prototype.getScore = function() {\n \n /**\n  * Set the score for the assessment.\n- * @param {number|string} score The score to be used for the score property\n+ * @param {number} score The score to be used for the score property\n  * @returns {void}\n  */\n AssessmentResult.prototype.setScore = function( score ) {\n-\tif ( !isNumber( score ) && !isString( score ) ) {\n+\tthis.isScoreSet = true;","path":"js/values/AssessmentResult.js","position":33,"original_position":33,"commit_id":"4359744994506ae6037cf7b440215921195d6a8d","original_commit_id":"4359744994506ae6037cf7b440215921195d6a8d","user":{"login":"terw-dan","id":11272096,"avatar_url":"https://avatars.githubusercontent.com/u/11272096?v=3","gravatar_id":"","url":"https://api.github.com/users/terw-dan","html_url":"https://github.com/terw-dan","followers_url":"https://api.github.com/users/terw-dan/followers","following_url":"https://api.github.com/users/terw-dan/following{/other_user}","gists_url":"https://api.github.com/users/terw-dan/gists{/gist_id}","starred_url":"https://api.github.com/users/terw-dan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terw-dan/subscriptions","organizations_url":"https://api.github.com/users/terw-dan/orgs","repos_url":"https://api.github.com/users/terw-dan/repos","events_url":"https://api.github.com/users/terw-dan/events{/privacy}","received_events_url":"https://api.github.com/users/terw-dan/received_events","type":"User","site_admin":false},"body":"changed this to \r\nif ( isNumber( score ) ) {\r\n    this.score = score;\r\n    this.isScoreSet = true;\r\n}","created_at":"2016-03-25T14:43:54Z","updated_at":"2016-03-25T14:43:54Z","html_url":"https://github.com/Yoast/YoastSEO.js/pull/385#discussion_r57449854","pull_request_url":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/385","_links":{"self":{"href":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/comments/57449854"},"html":{"href":"https://github.com/Yoast/YoastSEO.js/pull/385#discussion_r57449854"},"pull_request":{"href":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/385"}}},"pull_request":{"url":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/385","id":64166040,"html_url":"https://github.com/Yoast/YoastSEO.js/pull/385","diff_url":"https://github.com/Yoast/YoastSEO.js/pull/385.diff","patch_url":"https://github.com/Yoast/YoastSEO.js/pull/385.patch","issue_url":"https://api.github.com/repos/Yoast/YoastSEO.js/issues/385","number":385,"state":"open","locked":false,"title":"Improves the hasScore for the assessmentresult.","user":{"login":"terw-dan","id":11272096,"avatar_url":"https://avatars.githubusercontent.com/u/11272096?v=3","gravatar_id":"","url":"https://api.github.com/users/terw-dan","html_url":"https://github.com/terw-dan","followers_url":"https://api.github.com/users/terw-dan/followers","following_url":"https://api.github.com/users/terw-dan/following{/other_user}","gists_url":"https://api.github.com/users/terw-dan/gists{/gist_id}","starred_url":"https://api.github.com/users/terw-dan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terw-dan/subscriptions","organizations_url":"https://api.github.com/users/terw-dan/orgs","repos_url":"https://api.github.com/users/terw-dan/repos","events_url":"https://api.github.com/users/terw-dan/events{/privacy}","received_events_url":"https://api.github.com/users/terw-dan/received_events","type":"User","site_admin":false},"body":"Adds a boolean isScoreSet to the assessmentResult. This way we can check if a score is set, and it is possible to set a score to 0.","created_at":"2016-03-25T14:16:22Z","updated_at":"2016-03-25T14:43:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a275aecd7433d30602515ca17cbd23d051c713d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/385/commits","review_comments_url":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/385/comments","review_comment_url":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yoast/YoastSEO.js/issues/385/comments","statuses_url":"https://api.github.com/repos/Yoast/YoastSEO.js/statuses/4359744994506ae6037cf7b440215921195d6a8d","head":{"label":"Yoast:DT/assessment-result-0","ref":"DT/assessment-result-0","sha":"4359744994506ae6037cf7b440215921195d6a8d","user":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"repo":{"id":32734884,"name":"YoastSEO.js","full_name":"Yoast/YoastSEO.js","owner":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yoast/YoastSEO.js","description":"Analyze content on a page and give SEO feedback as well as render a snippet preview.","fork":false,"url":"https://api.github.com/repos/Yoast/YoastSEO.js","forks_url":"https://api.github.com/repos/Yoast/YoastSEO.js/forks","keys_url":"https://api.github.com/repos/Yoast/YoastSEO.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoast/YoastSEO.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoast/YoastSEO.js/teams","hooks_url":"https://api.github.com/repos/Yoast/YoastSEO.js/hooks","issue_events_url":"https://api.github.com/repos/Yoast/YoastSEO.js/issues/events{/number}","events_url":"https://api.github.com/repos/Yoast/YoastSEO.js/events","assignees_url":"https://api.github.com/repos/Yoast/YoastSEO.js/assignees{/user}","branches_url":"https://api.github.com/repos/Yoast/YoastSEO.js/branches{/branch}","tags_url":"https://api.github.com/repos/Yoast/YoastSEO.js/tags","blobs_url":"https://api.github.com/repos/Yoast/YoastSEO.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoast/YoastSEO.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoast/YoastSEO.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoast/YoastSEO.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoast/YoastSEO.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoast/YoastSEO.js/languages","stargazers_url":"https://api.github.com/repos/Yoast/YoastSEO.js/stargazers","contributors_url":"https://api.github.com/repos/Yoast/YoastSEO.js/contributors","subscribers_url":"https://api.github.com/repos/Yoast/YoastSEO.js/subscribers","subscription_url":"https://api.github.com/repos/Yoast/YoastSEO.js/subscription","commits_url":"https://api.github.com/repos/Yoast/YoastSEO.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoast/YoastSEO.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoast/YoastSEO.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoast/YoastSEO.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoast/YoastSEO.js/contents/{+path}","compare_url":"https://api.github.com/repos/Yoast/YoastSEO.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoast/YoastSEO.js/merges","archive_url":"https://api.github.com/repos/Yoast/YoastSEO.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoast/YoastSEO.js/downloads","issues_url":"https://api.github.com/repos/Yoast/YoastSEO.js/issues{/number}","pulls_url":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoast/YoastSEO.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoast/YoastSEO.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoast/YoastSEO.js/labels{/name}","releases_url":"https://api.github.com/repos/Yoast/YoastSEO.js/releases{/id}","deployments_url":"https://api.github.com/repos/Yoast/YoastSEO.js/deployments","created_at":"2015-03-23T13:50:16Z","updated_at":"2016-03-25T13:44:55Z","pushed_at":"2016-03-25T14:43:14Z","git_url":"git://github.com/Yoast/YoastSEO.js.git","ssh_url":"git@github.com:Yoast/YoastSEO.js.git","clone_url":"https://github.com/Yoast/YoastSEO.js.git","svn_url":"https://github.com/Yoast/YoastSEO.js","homepage":"","size":3645,"stargazers_count":35,"watchers_count":35,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":79,"forks":13,"open_issues":79,"watchers":35,"default_branch":"develop"}},"base":{"label":"Yoast:develop","ref":"develop","sha":"8e523d4532c94aba638273f679b85016727c5362","user":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"repo":{"id":32734884,"name":"YoastSEO.js","full_name":"Yoast/YoastSEO.js","owner":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yoast/YoastSEO.js","description":"Analyze content on a page and give SEO feedback as well as render a snippet preview.","fork":false,"url":"https://api.github.com/repos/Yoast/YoastSEO.js","forks_url":"https://api.github.com/repos/Yoast/YoastSEO.js/forks","keys_url":"https://api.github.com/repos/Yoast/YoastSEO.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoast/YoastSEO.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoast/YoastSEO.js/teams","hooks_url":"https://api.github.com/repos/Yoast/YoastSEO.js/hooks","issue_events_url":"https://api.github.com/repos/Yoast/YoastSEO.js/issues/events{/number}","events_url":"https://api.github.com/repos/Yoast/YoastSEO.js/events","assignees_url":"https://api.github.com/repos/Yoast/YoastSEO.js/assignees{/user}","branches_url":"https://api.github.com/repos/Yoast/YoastSEO.js/branches{/branch}","tags_url":"https://api.github.com/repos/Yoast/YoastSEO.js/tags","blobs_url":"https://api.github.com/repos/Yoast/YoastSEO.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoast/YoastSEO.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoast/YoastSEO.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoast/YoastSEO.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoast/YoastSEO.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoast/YoastSEO.js/languages","stargazers_url":"https://api.github.com/repos/Yoast/YoastSEO.js/stargazers","contributors_url":"https://api.github.com/repos/Yoast/YoastSEO.js/contributors","subscribers_url":"https://api.github.com/repos/Yoast/YoastSEO.js/subscribers","subscription_url":"https://api.github.com/repos/Yoast/YoastSEO.js/subscription","commits_url":"https://api.github.com/repos/Yoast/YoastSEO.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoast/YoastSEO.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoast/YoastSEO.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoast/YoastSEO.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoast/YoastSEO.js/contents/{+path}","compare_url":"https://api.github.com/repos/Yoast/YoastSEO.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoast/YoastSEO.js/merges","archive_url":"https://api.github.com/repos/Yoast/YoastSEO.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoast/YoastSEO.js/downloads","issues_url":"https://api.github.com/repos/Yoast/YoastSEO.js/issues{/number}","pulls_url":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoast/YoastSEO.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoast/YoastSEO.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoast/YoastSEO.js/labels{/name}","releases_url":"https://api.github.com/repos/Yoast/YoastSEO.js/releases{/id}","deployments_url":"https://api.github.com/repos/Yoast/YoastSEO.js/deployments","created_at":"2015-03-23T13:50:16Z","updated_at":"2016-03-25T13:44:55Z","pushed_at":"2016-03-25T14:43:14Z","git_url":"git://github.com/Yoast/YoastSEO.js.git","ssh_url":"git@github.com:Yoast/YoastSEO.js.git","clone_url":"https://github.com/Yoast/YoastSEO.js.git","svn_url":"https://github.com/Yoast/YoastSEO.js","homepage":"","size":3645,"stargazers_count":35,"watchers_count":35,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":79,"forks":13,"open_issues":79,"watchers":35,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/385"},"html":{"href":"https://github.com/Yoast/YoastSEO.js/pull/385"},"issue":{"href":"https://api.github.com/repos/Yoast/YoastSEO.js/issues/385"},"comments":{"href":"https://api.github.com/repos/Yoast/YoastSEO.js/issues/385/comments"},"review_comments":{"href":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/385/comments"},"review_comment":{"href":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yoast/YoastSEO.js/pulls/385/commits"},"statuses":{"href":"https://api.github.com/repos/Yoast/YoastSEO.js/statuses/4359744994506ae6037cf7b440215921195d6a8d"}}}}