{"action":"created","comment":{"url":"https://api.github.com/repos/sgmap/pix-live/pulls/comments/80002128","id":80002128,"diff_hunk":"@@ -3,6 +3,28 @@ import _ from 'lodash/lodash';\n \n const { computed, inject } = Ember;\n \n+function extValidate () {\n+  if (this._hasError()) {\n+    this.set('errorMessage', this._getErrorMessage());\n+    return this.sendAction('onError', this.get('errorMessage'));\n+  }\n+  const value = this._getAnswerValue();\n+  this.sendAction('onValidated', this.get('challenge'), this.get('assessment'), value);\n+}\n+\n+function extSkip () {\n+  this.set('errorMessage', null);\n+  this.sendAction('onValidated', this.get('challenge'), this.get('assessment'), '#ABAND#')\n+}\n+\n+let partialThrottle = (targetFunction) => {","path":"app/components/challenge-item.js","position":18,"original_position":18,"commit_id":"a73c35ff064055f51557b6584498c95818f5f128","original_commit_id":"a73c35ff064055f51557b6584498c95818f5f128","user":{"login":"jbuget","id":265963,"avatar_url":"https://avatars.githubusercontent.com/u/265963?v=3","gravatar_id":"","url":"https://api.github.com/users/jbuget","html_url":"https://github.com/jbuget","followers_url":"https://api.github.com/users/jbuget/followers","following_url":"https://api.github.com/users/jbuget/following{/other_user}","gists_url":"https://api.github.com/users/jbuget/gists{/gist_id}","starred_url":"https://api.github.com/users/jbuget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbuget/subscriptions","organizations_url":"https://api.github.com/users/jbuget/orgs","repos_url":"https://api.github.com/users/jbuget/repos","events_url":"https://api.github.com/users/jbuget/events{/privacy}","received_events_url":"https://api.github.com/users/jbuget/received_events","type":"User","site_admin":false},"body":"je renommerais en \"executeAfterDelay\" ou \"callAfterDelay\" qui a une connotation un poil plus fonctionnelle que \"partialThrottle\" qui décrit l'implémentation (et qui concatène 2 méthodes pas forcément connues par tout le monde)","created_at":"2016-09-22T09:17:31Z","updated_at":"2016-09-22T09:17:31Z","html_url":"https://github.com/sgmap/pix-live/pull/56#discussion_r80002128","pull_request_url":"https://api.github.com/repos/sgmap/pix-live/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/sgmap/pix-live/pulls/comments/80002128"},"html":{"href":"https://github.com/sgmap/pix-live/pull/56#discussion_r80002128"},"pull_request":{"href":"https://api.github.com/repos/sgmap/pix-live/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/sgmap/pix-live/pulls/56","id":85981333,"html_url":"https://github.com/sgmap/pix-live/pull/56","diff_url":"https://github.com/sgmap/pix-live/pull/56.diff","patch_url":"https://github.com/sgmap/pix-live/pull/56.patch","issue_url":"https://api.github.com/repos/sgmap/pix-live/issues/56","number":56,"state":"open","locked":false,"title":"US-55 : double-click prevention on validate and skip buttons","user":{"login":"bdavidxyz","id":2937888,"avatar_url":"https://avatars.githubusercontent.com/u/2937888?v=3","gravatar_id":"","url":"https://api.github.com/users/bdavidxyz","html_url":"https://github.com/bdavidxyz","followers_url":"https://api.github.com/users/bdavidxyz/followers","following_url":"https://api.github.com/users/bdavidxyz/following{/other_user}","gists_url":"https://api.github.com/users/bdavidxyz/gists{/gist_id}","starred_url":"https://api.github.com/users/bdavidxyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdavidxyz/subscriptions","organizations_url":"https://api.github.com/users/bdavidxyz/orgs","repos_url":"https://api.github.com/users/bdavidxyz/repos","events_url":"https://api.github.com/users/bdavidxyz/events{/privacy}","received_events_url":"https://api.github.com/users/bdavidxyz/received_events","type":"User","site_admin":false},"body":"Fix #50","created_at":"2016-09-20T14:01:39Z","updated_at":"2016-09-22T09:17:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7878c23f1006ddf27252d0f4ea900b212af8c189","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sgmap/pix-live/pulls/56/commits","review_comments_url":"https://api.github.com/repos/sgmap/pix-live/pulls/56/comments","review_comment_url":"https://api.github.com/repos/sgmap/pix-live/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sgmap/pix-live/issues/56/comments","statuses_url":"https://api.github.com/repos/sgmap/pix-live/statuses/a73c35ff064055f51557b6584498c95818f5f128","head":{"label":"sgmap:55-fix-double-click-valider","ref":"55-fix-double-click-valider","sha":"a73c35ff064055f51557b6584498c95818f5f128","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":63066169,"name":"pix-live","full_name":"sgmap/pix-live","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/pix-live","description":"Plateforme d'évaluation des compétences numériques pour les usagers français","fork":false,"url":"https://api.github.com/repos/sgmap/pix-live","forks_url":"https://api.github.com/repos/sgmap/pix-live/forks","keys_url":"https://api.github.com/repos/sgmap/pix-live/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/pix-live/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/pix-live/teams","hooks_url":"https://api.github.com/repos/sgmap/pix-live/hooks","issue_events_url":"https://api.github.com/repos/sgmap/pix-live/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/pix-live/events","assignees_url":"https://api.github.com/repos/sgmap/pix-live/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/pix-live/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/pix-live/tags","blobs_url":"https://api.github.com/repos/sgmap/pix-live/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/pix-live/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/pix-live/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/pix-live/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/pix-live/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/pix-live/languages","stargazers_url":"https://api.github.com/repos/sgmap/pix-live/stargazers","contributors_url":"https://api.github.com/repos/sgmap/pix-live/contributors","subscribers_url":"https://api.github.com/repos/sgmap/pix-live/subscribers","subscription_url":"https://api.github.com/repos/sgmap/pix-live/subscription","commits_url":"https://api.github.com/repos/sgmap/pix-live/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/pix-live/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/pix-live/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/pix-live/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/pix-live/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/pix-live/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/pix-live/merges","archive_url":"https://api.github.com/repos/sgmap/pix-live/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/pix-live/downloads","issues_url":"https://api.github.com/repos/sgmap/pix-live/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/pix-live/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/pix-live/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/pix-live/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/pix-live/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/pix-live/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/pix-live/deployments","created_at":"2016-07-11T12:31:15Z","updated_at":"2016-09-09T08:23:00Z","pushed_at":"2016-09-22T08:41:02Z","git_url":"git://github.com/sgmap/pix-live.git","ssh_url":"git@github.com:sgmap/pix-live.git","clone_url":"https://github.com/sgmap/pix-live.git","svn_url":"https://github.com/sgmap/pix-live","homepage":"","size":8494,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":4,"default_branch":"master"}},"base":{"label":"sgmap:master","ref":"master","sha":"db899951e88ef6e4253996b0515bc2e3fef5bc06","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":63066169,"name":"pix-live","full_name":"sgmap/pix-live","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/pix-live","description":"Plateforme d'évaluation des compétences numériques pour les usagers français","fork":false,"url":"https://api.github.com/repos/sgmap/pix-live","forks_url":"https://api.github.com/repos/sgmap/pix-live/forks","keys_url":"https://api.github.com/repos/sgmap/pix-live/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/pix-live/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/pix-live/teams","hooks_url":"https://api.github.com/repos/sgmap/pix-live/hooks","issue_events_url":"https://api.github.com/repos/sgmap/pix-live/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/pix-live/events","assignees_url":"https://api.github.com/repos/sgmap/pix-live/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/pix-live/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/pix-live/tags","blobs_url":"https://api.github.com/repos/sgmap/pix-live/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/pix-live/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/pix-live/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/pix-live/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/pix-live/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/pix-live/languages","stargazers_url":"https://api.github.com/repos/sgmap/pix-live/stargazers","contributors_url":"https://api.github.com/repos/sgmap/pix-live/contributors","subscribers_url":"https://api.github.com/repos/sgmap/pix-live/subscribers","subscription_url":"https://api.github.com/repos/sgmap/pix-live/subscription","commits_url":"https://api.github.com/repos/sgmap/pix-live/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/pix-live/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/pix-live/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/pix-live/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/pix-live/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/pix-live/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/pix-live/merges","archive_url":"https://api.github.com/repos/sgmap/pix-live/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/pix-live/downloads","issues_url":"https://api.github.com/repos/sgmap/pix-live/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/pix-live/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/pix-live/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/pix-live/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/pix-live/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/pix-live/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/pix-live/deployments","created_at":"2016-07-11T12:31:15Z","updated_at":"2016-09-09T08:23:00Z","pushed_at":"2016-09-22T08:41:02Z","git_url":"git://github.com/sgmap/pix-live.git","ssh_url":"git@github.com:sgmap/pix-live.git","clone_url":"https://github.com/sgmap/pix-live.git","svn_url":"https://github.com/sgmap/pix-live","homepage":"","size":8494,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sgmap/pix-live/pulls/56"},"html":{"href":"https://github.com/sgmap/pix-live/pull/56"},"issue":{"href":"https://api.github.com/repos/sgmap/pix-live/issues/56"},"comments":{"href":"https://api.github.com/repos/sgmap/pix-live/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/sgmap/pix-live/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/sgmap/pix-live/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sgmap/pix-live/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/sgmap/pix-live/statuses/a73c35ff064055f51557b6584498c95818f5f128"}}}}
{"actor":{"display_login":"jbuget"}}