{"action":"created","comment":{"url":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/comments/64530726","id":64530726,"diff_hunk":"@@ -1,47 +1,45 @@\n-Hamburger.prototype.error = function (str) {\n-    throw new Error(str);\n-}\n-\n-Hamburger.prototype.validate = function (indeficator,...sep\n-)\n-{\n-    try {\n-        indeficator === 'VALIDATE_TOPPING' ? this.checkForErrorsTopping(...sep)\n-    :\n-        this.checkForErrorsHamburger(...sep);\n-    } catch (e) {\n-        if (e.name == \"Error\") {\n-            alert(\"Извините, в данных ошибка\");\n-        } else {\n-            throw e;\n-        }\n-    }\n-}\n-;\n-\n-\n-Hamburger.prototype.checkForErrorsTopping = function (topping) {\n-    if (arguments.length > 1 || this.tgr == 0 || this.calory == 0) {\n-        this.error(\"Более одного аргумента или не существует гамбургера\");\n-    }\n-    for (var i = 0; i < this.toppings.length; i++) {\n-        if (this.toppings[i] === topping[2]) {\n-            this.error(\"Ошибка в типе передаваемой переменной\");\n-        }\n-    }\n-    if (topping[2].indexOf(\"TOPPING\") === -1) {\n-        this.error(\"Ошибка в типе передаваемой переменной\");\n-    }\n-};\n-\n-Hamburger.prototype.checkForErrorsHamburger = function (size, stuffing) {\n-    if (arguments.length > 2) {\n-        this.error(\"Очень много передаваемых переменных\");\n-    }\n-    if (size[2].indexOf(\"SIZE\") == -1) {\n-        this.error(\"Ошибка в типе передаваемой переменной\");\n-    }\n-    if (stuffing[2].indexOf(\"STUFFING\") == -1) {\n-        this.error(\"Ошибка в типе передаваемой переменной\");\n-    }\n-};\n+Hamburger.prototype.error = function (str) {\r\n+    throw new Error(str);\r\n+}\r\n+\r\n+Hamburger.prototype.validate = function (indeficator,...sep)\r","path":"task12/error.js","position":52,"original_position":52,"commit_id":"f218150793f886dd99dbca49e3ab90e932032cba","original_commit_id":"f218150793f886dd99dbca49e3ab90e932032cba","user":{"login":"imperia1991","id":5072057,"avatar_url":"https://avatars.githubusercontent.com/u/5072057?v=3","gravatar_id":"","url":"https://api.github.com/users/imperia1991","html_url":"https://github.com/imperia1991","followers_url":"https://api.github.com/users/imperia1991/followers","following_url":"https://api.github.com/users/imperia1991/following{/other_user}","gists_url":"https://api.github.com/users/imperia1991/gists{/gist_id}","starred_url":"https://api.github.com/users/imperia1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imperia1991/subscriptions","organizations_url":"https://api.github.com/users/imperia1991/orgs","repos_url":"https://api.github.com/users/imperia1991/repos","events_url":"https://api.github.com/users/imperia1991/events{/privacy}","received_events_url":"https://api.github.com/users/imperia1991/received_events","type":"User","site_admin":false},"body":"identifactor наверно)","created_at":"2016-05-25T08:04:40Z","updated_at":"2016-05-25T08:04:40Z","html_url":"https://github.com/rkarabanov/exmpls2/pull/5#discussion_r64530726","pull_request_url":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/comments/64530726"},"html":{"href":"https://github.com/rkarabanov/exmpls2/pull/5#discussion_r64530726"},"pull_request":{"href":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/5","id":71345831,"html_url":"https://github.com/rkarabanov/exmpls2/pull/5","diff_url":"https://github.com/rkarabanov/exmpls2/pull/5.diff","patch_url":"https://github.com/rkarabanov/exmpls2/pull/5.patch","issue_url":"https://api.github.com/repos/rkarabanov/exmpls2/issues/5","number":5,"state":"open","locked":false,"title":"Add files via upload","user":{"login":"rkarabanov","id":17376787,"avatar_url":"https://avatars.githubusercontent.com/u/17376787?v=3","gravatar_id":"","url":"https://api.github.com/users/rkarabanov","html_url":"https://github.com/rkarabanov","followers_url":"https://api.github.com/users/rkarabanov/followers","following_url":"https://api.github.com/users/rkarabanov/following{/other_user}","gists_url":"https://api.github.com/users/rkarabanov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkarabanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkarabanov/subscriptions","organizations_url":"https://api.github.com/users/rkarabanov/orgs","repos_url":"https://api.github.com/users/rkarabanov/repos","events_url":"https://api.github.com/users/rkarabanov/events{/privacy}","received_events_url":"https://api.github.com/users/rkarabanov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-25T08:00:30Z","updated_at":"2016-05-25T08:04:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9f6ccd3ebbd0a5a9f08297d7bb62f8ed49e75fe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/5/commits","review_comments_url":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/5/comments","review_comment_url":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rkarabanov/exmpls2/issues/5/comments","statuses_url":"https://api.github.com/repos/rkarabanov/exmpls2/statuses/f218150793f886dd99dbca49e3ab90e932032cba","head":{"label":"rkarabanov:Task-12","ref":"Task-12","sha":"f218150793f886dd99dbca49e3ab90e932032cba","user":{"login":"rkarabanov","id":17376787,"avatar_url":"https://avatars.githubusercontent.com/u/17376787?v=3","gravatar_id":"","url":"https://api.github.com/users/rkarabanov","html_url":"https://github.com/rkarabanov","followers_url":"https://api.github.com/users/rkarabanov/followers","following_url":"https://api.github.com/users/rkarabanov/following{/other_user}","gists_url":"https://api.github.com/users/rkarabanov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkarabanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkarabanov/subscriptions","organizations_url":"https://api.github.com/users/rkarabanov/orgs","repos_url":"https://api.github.com/users/rkarabanov/repos","events_url":"https://api.github.com/users/rkarabanov/events{/privacy}","received_events_url":"https://api.github.com/users/rkarabanov/received_events","type":"User","site_admin":false},"repo":{"id":59296162,"name":"exmpls2","full_name":"rkarabanov/exmpls2","owner":{"login":"rkarabanov","id":17376787,"avatar_url":"https://avatars.githubusercontent.com/u/17376787?v=3","gravatar_id":"","url":"https://api.github.com/users/rkarabanov","html_url":"https://github.com/rkarabanov","followers_url":"https://api.github.com/users/rkarabanov/followers","following_url":"https://api.github.com/users/rkarabanov/following{/other_user}","gists_url":"https://api.github.com/users/rkarabanov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkarabanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkarabanov/subscriptions","organizations_url":"https://api.github.com/users/rkarabanov/orgs","repos_url":"https://api.github.com/users/rkarabanov/repos","events_url":"https://api.github.com/users/rkarabanov/events{/privacy}","received_events_url":"https://api.github.com/users/rkarabanov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rkarabanov/exmpls2","description":"","fork":false,"url":"https://api.github.com/repos/rkarabanov/exmpls2","forks_url":"https://api.github.com/repos/rkarabanov/exmpls2/forks","keys_url":"https://api.github.com/repos/rkarabanov/exmpls2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rkarabanov/exmpls2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rkarabanov/exmpls2/teams","hooks_url":"https://api.github.com/repos/rkarabanov/exmpls2/hooks","issue_events_url":"https://api.github.com/repos/rkarabanov/exmpls2/issues/events{/number}","events_url":"https://api.github.com/repos/rkarabanov/exmpls2/events","assignees_url":"https://api.github.com/repos/rkarabanov/exmpls2/assignees{/user}","branches_url":"https://api.github.com/repos/rkarabanov/exmpls2/branches{/branch}","tags_url":"https://api.github.com/repos/rkarabanov/exmpls2/tags","blobs_url":"https://api.github.com/repos/rkarabanov/exmpls2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rkarabanov/exmpls2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rkarabanov/exmpls2/git/refs{/sha}","trees_url":"https://api.github.com/repos/rkarabanov/exmpls2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rkarabanov/exmpls2/statuses/{sha}","languages_url":"https://api.github.com/repos/rkarabanov/exmpls2/languages","stargazers_url":"https://api.github.com/repos/rkarabanov/exmpls2/stargazers","contributors_url":"https://api.github.com/repos/rkarabanov/exmpls2/contributors","subscribers_url":"https://api.github.com/repos/rkarabanov/exmpls2/subscribers","subscription_url":"https://api.github.com/repos/rkarabanov/exmpls2/subscription","commits_url":"https://api.github.com/repos/rkarabanov/exmpls2/commits{/sha}","git_commits_url":"https://api.github.com/repos/rkarabanov/exmpls2/git/commits{/sha}","comments_url":"https://api.github.com/repos/rkarabanov/exmpls2/comments{/number}","issue_comment_url":"https://api.github.com/repos/rkarabanov/exmpls2/issues/comments{/number}","contents_url":"https://api.github.com/repos/rkarabanov/exmpls2/contents/{+path}","compare_url":"https://api.github.com/repos/rkarabanov/exmpls2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rkarabanov/exmpls2/merges","archive_url":"https://api.github.com/repos/rkarabanov/exmpls2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rkarabanov/exmpls2/downloads","issues_url":"https://api.github.com/repos/rkarabanov/exmpls2/issues{/number}","pulls_url":"https://api.github.com/repos/rkarabanov/exmpls2/pulls{/number}","milestones_url":"https://api.github.com/repos/rkarabanov/exmpls2/milestones{/number}","notifications_url":"https://api.github.com/repos/rkarabanov/exmpls2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rkarabanov/exmpls2/labels{/name}","releases_url":"https://api.github.com/repos/rkarabanov/exmpls2/releases{/id}","deployments_url":"https://api.github.com/repos/rkarabanov/exmpls2/deployments","created_at":"2016-05-20T13:24:13Z","updated_at":"2016-05-25T07:56:10Z","pushed_at":"2016-05-25T08:00:31Z","git_url":"git://github.com/rkarabanov/exmpls2.git","ssh_url":"git@github.com:rkarabanov/exmpls2.git","clone_url":"https://github.com/rkarabanov/exmpls2.git","svn_url":"https://github.com/rkarabanov/exmpls2","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rkarabanov:master","ref":"master","sha":"aea267a63ed2eceeaf93553f917406aefbc20b51","user":{"login":"rkarabanov","id":17376787,"avatar_url":"https://avatars.githubusercontent.com/u/17376787?v=3","gravatar_id":"","url":"https://api.github.com/users/rkarabanov","html_url":"https://github.com/rkarabanov","followers_url":"https://api.github.com/users/rkarabanov/followers","following_url":"https://api.github.com/users/rkarabanov/following{/other_user}","gists_url":"https://api.github.com/users/rkarabanov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkarabanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkarabanov/subscriptions","organizations_url":"https://api.github.com/users/rkarabanov/orgs","repos_url":"https://api.github.com/users/rkarabanov/repos","events_url":"https://api.github.com/users/rkarabanov/events{/privacy}","received_events_url":"https://api.github.com/users/rkarabanov/received_events","type":"User","site_admin":false},"repo":{"id":59296162,"name":"exmpls2","full_name":"rkarabanov/exmpls2","owner":{"login":"rkarabanov","id":17376787,"avatar_url":"https://avatars.githubusercontent.com/u/17376787?v=3","gravatar_id":"","url":"https://api.github.com/users/rkarabanov","html_url":"https://github.com/rkarabanov","followers_url":"https://api.github.com/users/rkarabanov/followers","following_url":"https://api.github.com/users/rkarabanov/following{/other_user}","gists_url":"https://api.github.com/users/rkarabanov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkarabanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkarabanov/subscriptions","organizations_url":"https://api.github.com/users/rkarabanov/orgs","repos_url":"https://api.github.com/users/rkarabanov/repos","events_url":"https://api.github.com/users/rkarabanov/events{/privacy}","received_events_url":"https://api.github.com/users/rkarabanov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rkarabanov/exmpls2","description":"","fork":false,"url":"https://api.github.com/repos/rkarabanov/exmpls2","forks_url":"https://api.github.com/repos/rkarabanov/exmpls2/forks","keys_url":"https://api.github.com/repos/rkarabanov/exmpls2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rkarabanov/exmpls2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rkarabanov/exmpls2/teams","hooks_url":"https://api.github.com/repos/rkarabanov/exmpls2/hooks","issue_events_url":"https://api.github.com/repos/rkarabanov/exmpls2/issues/events{/number}","events_url":"https://api.github.com/repos/rkarabanov/exmpls2/events","assignees_url":"https://api.github.com/repos/rkarabanov/exmpls2/assignees{/user}","branches_url":"https://api.github.com/repos/rkarabanov/exmpls2/branches{/branch}","tags_url":"https://api.github.com/repos/rkarabanov/exmpls2/tags","blobs_url":"https://api.github.com/repos/rkarabanov/exmpls2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rkarabanov/exmpls2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rkarabanov/exmpls2/git/refs{/sha}","trees_url":"https://api.github.com/repos/rkarabanov/exmpls2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rkarabanov/exmpls2/statuses/{sha}","languages_url":"https://api.github.com/repos/rkarabanov/exmpls2/languages","stargazers_url":"https://api.github.com/repos/rkarabanov/exmpls2/stargazers","contributors_url":"https://api.github.com/repos/rkarabanov/exmpls2/contributors","subscribers_url":"https://api.github.com/repos/rkarabanov/exmpls2/subscribers","subscription_url":"https://api.github.com/repos/rkarabanov/exmpls2/subscription","commits_url":"https://api.github.com/repos/rkarabanov/exmpls2/commits{/sha}","git_commits_url":"https://api.github.com/repos/rkarabanov/exmpls2/git/commits{/sha}","comments_url":"https://api.github.com/repos/rkarabanov/exmpls2/comments{/number}","issue_comment_url":"https://api.github.com/repos/rkarabanov/exmpls2/issues/comments{/number}","contents_url":"https://api.github.com/repos/rkarabanov/exmpls2/contents/{+path}","compare_url":"https://api.github.com/repos/rkarabanov/exmpls2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rkarabanov/exmpls2/merges","archive_url":"https://api.github.com/repos/rkarabanov/exmpls2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rkarabanov/exmpls2/downloads","issues_url":"https://api.github.com/repos/rkarabanov/exmpls2/issues{/number}","pulls_url":"https://api.github.com/repos/rkarabanov/exmpls2/pulls{/number}","milestones_url":"https://api.github.com/repos/rkarabanov/exmpls2/milestones{/number}","notifications_url":"https://api.github.com/repos/rkarabanov/exmpls2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rkarabanov/exmpls2/labels{/name}","releases_url":"https://api.github.com/repos/rkarabanov/exmpls2/releases{/id}","deployments_url":"https://api.github.com/repos/rkarabanov/exmpls2/deployments","created_at":"2016-05-20T13:24:13Z","updated_at":"2016-05-25T07:56:10Z","pushed_at":"2016-05-25T08:00:31Z","git_url":"git://github.com/rkarabanov/exmpls2.git","ssh_url":"git@github.com:rkarabanov/exmpls2.git","clone_url":"https://github.com/rkarabanov/exmpls2.git","svn_url":"https://github.com/rkarabanov/exmpls2","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/5"},"html":{"href":"https://github.com/rkarabanov/exmpls2/pull/5"},"issue":{"href":"https://api.github.com/repos/rkarabanov/exmpls2/issues/5"},"comments":{"href":"https://api.github.com/repos/rkarabanov/exmpls2/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rkarabanov/exmpls2/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/rkarabanov/exmpls2/statuses/f218150793f886dd99dbca49e3ab90e932032cba"}}}}
{"actor":{"display_login":"imperia1991"}}