{"action":"created","comment":{"url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/comments/33892524","id":33892524,"diff_hunk":"@@ -0,0 +1,99 @@\n+﻿define(function () {\n+\t'use strict'\n+\n+\t///writers\n+\tfunction _writeToConsole(message) {\n+\t\tconsole.log(message);\n+\t};\n+\n+\tfunction _writeToAlert(message) {\n+\t\talert(message);\n+\t};\n+\n+\tfunction _writeToCurrentWindow(message) {\n+\t\tvar body = window.document.getElementsByTagName(\"body\")[0];\n+\t\tbody.innerHTML += \"\\n\" + message;\n+\t}\n+\n+\tfunction _writeToWebAPI(url, message) {\n+\t\tvar xmlhttp = new XMLHttpRequest();\n+\t\txmlhttp.open(\"Post\", url, true);\n+\t\txmlhttp.send();\n+\t}\n+\t///\n+\n+\tfunction Logger(writeInfoMethod, writeErrorMethod) {\n+\t\t///log methods\n+\t\tfunction _logInfo(writeMethod, message) {\n+\t\t\twriteMethod(\"Info:\" + message);\n+\t\t};\n+\n+\t\tfunction _logError(writeMethod, message) {\n+\t\t\twriteMethod(\"Error:\" + message);\n+\t\t};\n+\t\t///\n+\n+\t\t///write methods check\n+\t\tif (writeInfoMethod) {\n+\t\t\tif (typeof writeInfoMethod == 'function') {\n+\t\t\t\tif (writeInfoMethod.length < 1)\n+\t\t\t\t\tthrow new TypeError(\"writeInfoMethod should be function(string)\");\n+\t\t\t}\n+\t\t\telse if (typeof writeInfoMethod == 'string') {","path":"logger.js","position":42,"original_position":42,"commit_id":"aa918322e28305e5485421fbd475af0b752a4742","original_commit_id":"aa918322e28305e5485421fbd475af0b752a4742","user":{"login":"ilya-markevich","id":11898846,"avatar_url":"https://avatars.githubusercontent.com/u/11898846?v=3","gravatar_id":"","url":"https://api.github.com/users/ilya-markevich","html_url":"https://github.com/ilya-markevich","followers_url":"https://api.github.com/users/ilya-markevich/followers","following_url":"https://api.github.com/users/ilya-markevich/following{/other_user}","gists_url":"https://api.github.com/users/ilya-markevich/gists{/gist_id}","starred_url":"https://api.github.com/users/ilya-markevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilya-markevich/subscriptions","organizations_url":"https://api.github.com/users/ilya-markevich/orgs","repos_url":"https://api.github.com/users/ilya-markevich/repos","events_url":"https://api.github.com/users/ilya-markevich/events{/privacy}","received_events_url":"https://api.github.com/users/ilya-markevich/received_events","type":"User","site_admin":false},"body":"почему не ===","created_at":"2015-07-05T07:08:35Z","updated_at":"2015-07-05T07:08:35Z","html_url":"https://github.com/Ilya-Kozik-learning/learning/pull/2#discussion_r33892524","pull_request_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/comments/33892524"},"html":{"href":"https://github.com/Ilya-Kozik-learning/learning/pull/2#discussion_r33892524"},"pull_request":{"href":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/2","id":37417739,"html_url":"https://github.com/Ilya-Kozik-learning/learning/pull/2","diff_url":"https://github.com/Ilya-Kozik-learning/learning/pull/2.diff","patch_url":"https://github.com/Ilya-Kozik-learning/learning/pull/2.patch","issue_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/issues/2","number":2,"state":"open","locked":false,"title":"Feature/practise2","user":{"login":"Ilya-Kozik-learning","id":12392116,"avatar_url":"https://avatars.githubusercontent.com/u/12392116?v=3","gravatar_id":"","url":"https://api.github.com/users/Ilya-Kozik-learning","html_url":"https://github.com/Ilya-Kozik-learning","followers_url":"https://api.github.com/users/Ilya-Kozik-learning/followers","following_url":"https://api.github.com/users/Ilya-Kozik-learning/following{/other_user}","gists_url":"https://api.github.com/users/Ilya-Kozik-learning/gists{/gist_id}","starred_url":"https://api.github.com/users/Ilya-Kozik-learning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ilya-Kozik-learning/subscriptions","organizations_url":"https://api.github.com/users/Ilya-Kozik-learning/orgs","repos_url":"https://api.github.com/users/Ilya-Kozik-learning/repos","events_url":"https://api.github.com/users/Ilya-Kozik-learning/events{/privacy}","received_events_url":"https://api.github.com/users/Ilya-Kozik-learning/received_events","type":"User","site_admin":false},"body":"Second practise.","created_at":"2015-06-11T00:06:08Z","updated_at":"2015-07-05T07:08:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d14848812569d4ffd18147dc69c83dab1df0a7c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/issues/2/comments","statuses_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/statuses/aa918322e28305e5485421fbd475af0b752a4742","head":{"label":"Ilya-Kozik-learning:feature/practise2","ref":"feature/practise2","sha":"aa918322e28305e5485421fbd475af0b752a4742","user":{"login":"Ilya-Kozik-learning","id":12392116,"avatar_url":"https://avatars.githubusercontent.com/u/12392116?v=3","gravatar_id":"","url":"https://api.github.com/users/Ilya-Kozik-learning","html_url":"https://github.com/Ilya-Kozik-learning","followers_url":"https://api.github.com/users/Ilya-Kozik-learning/followers","following_url":"https://api.github.com/users/Ilya-Kozik-learning/following{/other_user}","gists_url":"https://api.github.com/users/Ilya-Kozik-learning/gists{/gist_id}","starred_url":"https://api.github.com/users/Ilya-Kozik-learning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ilya-Kozik-learning/subscriptions","organizations_url":"https://api.github.com/users/Ilya-Kozik-learning/orgs","repos_url":"https://api.github.com/users/Ilya-Kozik-learning/repos","events_url":"https://api.github.com/users/Ilya-Kozik-learning/events{/privacy}","received_events_url":"https://api.github.com/users/Ilya-Kozik-learning/received_events","type":"User","site_admin":false},"repo":{"id":36323398,"name":"learning","full_name":"Ilya-Kozik-learning/learning","owner":{"login":"Ilya-Kozik-learning","id":12392116,"avatar_url":"https://avatars.githubusercontent.com/u/12392116?v=3","gravatar_id":"","url":"https://api.github.com/users/Ilya-Kozik-learning","html_url":"https://github.com/Ilya-Kozik-learning","followers_url":"https://api.github.com/users/Ilya-Kozik-learning/followers","following_url":"https://api.github.com/users/Ilya-Kozik-learning/following{/other_user}","gists_url":"https://api.github.com/users/Ilya-Kozik-learning/gists{/gist_id}","starred_url":"https://api.github.com/users/Ilya-Kozik-learning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ilya-Kozik-learning/subscriptions","organizations_url":"https://api.github.com/users/Ilya-Kozik-learning/orgs","repos_url":"https://api.github.com/users/Ilya-Kozik-learning/repos","events_url":"https://api.github.com/users/Ilya-Kozik-learning/events{/privacy}","received_events_url":"https://api.github.com/users/Ilya-Kozik-learning/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ilya-Kozik-learning/learning","description":"","fork":false,"url":"https://api.github.com/repos/Ilya-Kozik-learning/learning","forks_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/forks","keys_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/teams","hooks_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/hooks","issue_events_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/issues/events{/number}","events_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/events","assignees_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/assignees{/user}","branches_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/branches{/branch}","tags_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/tags","blobs_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/statuses/{sha}","languages_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/languages","stargazers_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/stargazers","contributors_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/contributors","subscribers_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/subscribers","subscription_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/subscription","commits_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/contents/{+path}","compare_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/merges","archive_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/downloads","issues_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/issues{/number}","pulls_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls{/number}","milestones_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/milestones{/number}","notifications_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/labels{/name}","releases_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/releases{/id}","created_at":"2015-05-26T20:58:50Z","updated_at":"2015-05-26T20:58:50Z","pushed_at":"2015-06-11T00:06:08Z","git_url":"git://github.com/Ilya-Kozik-learning/learning.git","ssh_url":"git@github.com:Ilya-Kozik-learning/learning.git","clone_url":"https://github.com/Ilya-Kozik-learning/learning.git","svn_url":"https://github.com/Ilya-Kozik-learning/learning","homepage":null,"size":224,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Ilya-Kozik-learning:master","ref":"master","sha":"47636782f2a65f3edd00196c59e4945cd67217e7","user":{"login":"Ilya-Kozik-learning","id":12392116,"avatar_url":"https://avatars.githubusercontent.com/u/12392116?v=3","gravatar_id":"","url":"https://api.github.com/users/Ilya-Kozik-learning","html_url":"https://github.com/Ilya-Kozik-learning","followers_url":"https://api.github.com/users/Ilya-Kozik-learning/followers","following_url":"https://api.github.com/users/Ilya-Kozik-learning/following{/other_user}","gists_url":"https://api.github.com/users/Ilya-Kozik-learning/gists{/gist_id}","starred_url":"https://api.github.com/users/Ilya-Kozik-learning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ilya-Kozik-learning/subscriptions","organizations_url":"https://api.github.com/users/Ilya-Kozik-learning/orgs","repos_url":"https://api.github.com/users/Ilya-Kozik-learning/repos","events_url":"https://api.github.com/users/Ilya-Kozik-learning/events{/privacy}","received_events_url":"https://api.github.com/users/Ilya-Kozik-learning/received_events","type":"User","site_admin":false},"repo":{"id":36323398,"name":"learning","full_name":"Ilya-Kozik-learning/learning","owner":{"login":"Ilya-Kozik-learning","id":12392116,"avatar_url":"https://avatars.githubusercontent.com/u/12392116?v=3","gravatar_id":"","url":"https://api.github.com/users/Ilya-Kozik-learning","html_url":"https://github.com/Ilya-Kozik-learning","followers_url":"https://api.github.com/users/Ilya-Kozik-learning/followers","following_url":"https://api.github.com/users/Ilya-Kozik-learning/following{/other_user}","gists_url":"https://api.github.com/users/Ilya-Kozik-learning/gists{/gist_id}","starred_url":"https://api.github.com/users/Ilya-Kozik-learning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ilya-Kozik-learning/subscriptions","organizations_url":"https://api.github.com/users/Ilya-Kozik-learning/orgs","repos_url":"https://api.github.com/users/Ilya-Kozik-learning/repos","events_url":"https://api.github.com/users/Ilya-Kozik-learning/events{/privacy}","received_events_url":"https://api.github.com/users/Ilya-Kozik-learning/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ilya-Kozik-learning/learning","description":"","fork":false,"url":"https://api.github.com/repos/Ilya-Kozik-learning/learning","forks_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/forks","keys_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/teams","hooks_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/hooks","issue_events_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/issues/events{/number}","events_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/events","assignees_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/assignees{/user}","branches_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/branches{/branch}","tags_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/tags","blobs_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/statuses/{sha}","languages_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/languages","stargazers_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/stargazers","contributors_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/contributors","subscribers_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/subscribers","subscription_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/subscription","commits_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/contents/{+path}","compare_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/merges","archive_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/downloads","issues_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/issues{/number}","pulls_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls{/number}","milestones_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/milestones{/number}","notifications_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/labels{/name}","releases_url":"https://api.github.com/repos/Ilya-Kozik-learning/learning/releases{/id}","created_at":"2015-05-26T20:58:50Z","updated_at":"2015-05-26T20:58:50Z","pushed_at":"2015-06-11T00:06:08Z","git_url":"git://github.com/Ilya-Kozik-learning/learning.git","ssh_url":"git@github.com:Ilya-Kozik-learning/learning.git","clone_url":"https://github.com/Ilya-Kozik-learning/learning.git","svn_url":"https://github.com/Ilya-Kozik-learning/learning","homepage":null,"size":224,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/2"},"html":{"href":"https://github.com/Ilya-Kozik-learning/learning/pull/2"},"issue":{"href":"https://api.github.com/repos/Ilya-Kozik-learning/learning/issues/2"},"comments":{"href":"https://api.github.com/repos/Ilya-Kozik-learning/learning/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ilya-Kozik-learning/learning/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Ilya-Kozik-learning/learning/statuses/aa918322e28305e5485421fbd475af0b752a4742"}}}}