{"action":"created","comment":{"url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/comments/58351648","id":58351648,"diff_hunk":"@@ -0,0 +1,97 @@\n+define(function (require) {\n+        var Backbone = require('backbone'),\n+            _ = require('underscore'),\n+            BlockModel = require('models/block');\n+\n+        var BlocksCollection = Backbone.Collection.extend({\n+            model: BlockModel,\n+            \n+            initialize: function () {\n+                this._isFinished = false;\n+            },\n+            \n+            setStatus: function () {\n+                if(this._isFinished){\n+                    this._isFinished = false;\n+                } else {\n+                    this._isFinished = true;\n+                }\n+            },\n+            \n+            getStatus: function() {\n+                return this._isFinished;\n+            },\n+\n+            createBlocks: function (x0, y0) {\n+                var intervalBetweenBlock = 20,\n+                    currentX = 0,\n+                    currentY = 0;\n+\n+                for (var i = 1; i <= 9; i++) {\n+                    this.add(new BlockModel(x0 + currentX, y0 + currentY, i));\n+                    if (i === 9) break;","path":"public_html/js/collections/blocks.js","position":32,"original_position":32,"commit_id":"7dee6c92eed0438acde447f412249e3e9e01e2d6","original_commit_id":"7dee6c92eed0438acde447f412249e3e9e01e2d6","user":{"login":"DmitryDorofeev","id":6406737,"avatar_url":"https://avatars.githubusercontent.com/u/6406737?v=3","gravatar_id":"","url":"https://api.github.com/users/DmitryDorofeev","html_url":"https://github.com/DmitryDorofeev","followers_url":"https://api.github.com/users/DmitryDorofeev/followers","following_url":"https://api.github.com/users/DmitryDorofeev/following{/other_user}","gists_url":"https://api.github.com/users/DmitryDorofeev/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryDorofeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryDorofeev/subscriptions","organizations_url":"https://api.github.com/users/DmitryDorofeev/orgs","repos_url":"https://api.github.com/users/DmitryDorofeev/repos","events_url":"https://api.github.com/users/DmitryDorofeev/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryDorofeev/received_events","type":"User","site_admin":false},"body":"не опускай {}","created_at":"2016-04-04T09:48:40Z","updated_at":"2016-04-04T09:48:40Z","html_url":"https://github.com/frontend-park-mail-ru/2016_1_XO/pull/4#discussion_r58351648","pull_request_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/comments/58351648"},"html":{"href":"https://github.com/frontend-park-mail-ru/2016_1_XO/pull/4#discussion_r58351648"},"pull_request":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/4","id":63468952,"html_url":"https://github.com/frontend-park-mail-ru/2016_1_XO/pull/4","diff_url":"https://github.com/frontend-park-mail-ru/2016_1_XO/pull/4.diff","patch_url":"https://github.com/frontend-park-mail-ru/2016_1_XO/pull/4.patch","issue_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/issues/4","number":4,"state":"open","locked":false,"title":"РК#1 fix. принимал Егор Дыдыкин + подготовка к РК#2. ментор - Дмитрий Дорофеев","user":{"login":"avtyul","id":14788245,"avatar_url":"https://avatars.githubusercontent.com/u/14788245?v=3","gravatar_id":"","url":"https://api.github.com/users/avtyul","html_url":"https://github.com/avtyul","followers_url":"https://api.github.com/users/avtyul/followers","following_url":"https://api.github.com/users/avtyul/following{/other_user}","gists_url":"https://api.github.com/users/avtyul/gists{/gist_id}","starred_url":"https://api.github.com/users/avtyul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avtyul/subscriptions","organizations_url":"https://api.github.com/users/avtyul/orgs","repos_url":"https://api.github.com/users/avtyul/repos","events_url":"https://api.github.com/users/avtyul/events{/privacy}","received_events_url":"https://api.github.com/users/avtyul/received_events","type":"User","site_admin":false},"body":"РК fixes : добавлены БЭМ и валидация\r\nДЗ stuff : попытки реализовать pubsub \r\n\r\nalso : добавлено игровое поле с имитацией действий игроков (рандомное закрашивание блоков)","created_at":"2016-03-19T14:22:44Z","updated_at":"2016-04-04T09:48:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38a1b330ee1398ebc7094b251646630aacc8d914","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/4/commits","review_comments_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/4/comments","review_comment_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/comments{/number}","comments_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/issues/4/comments","statuses_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/statuses/7dee6c92eed0438acde447f412249e3e9e01e2d6","head":{"label":"avtyul:master","ref":"master","sha":"7dee6c92eed0438acde447f412249e3e9e01e2d6","user":{"login":"avtyul","id":14788245,"avatar_url":"https://avatars.githubusercontent.com/u/14788245?v=3","gravatar_id":"","url":"https://api.github.com/users/avtyul","html_url":"https://github.com/avtyul","followers_url":"https://api.github.com/users/avtyul/followers","following_url":"https://api.github.com/users/avtyul/following{/other_user}","gists_url":"https://api.github.com/users/avtyul/gists{/gist_id}","starred_url":"https://api.github.com/users/avtyul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avtyul/subscriptions","organizations_url":"https://api.github.com/users/avtyul/orgs","repos_url":"https://api.github.com/users/avtyul/repos","events_url":"https://api.github.com/users/avtyul/events{/privacy}","received_events_url":"https://api.github.com/users/avtyul/received_events","type":"User","site_admin":false},"repo":{"id":51755617,"name":"2016_1_XO","full_name":"avtyul/2016_1_XO","owner":{"login":"avtyul","id":14788245,"avatar_url":"https://avatars.githubusercontent.com/u/14788245?v=3","gravatar_id":"","url":"https://api.github.com/users/avtyul","html_url":"https://github.com/avtyul","followers_url":"https://api.github.com/users/avtyul/followers","following_url":"https://api.github.com/users/avtyul/following{/other_user}","gists_url":"https://api.github.com/users/avtyul/gists{/gist_id}","starred_url":"https://api.github.com/users/avtyul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avtyul/subscriptions","organizations_url":"https://api.github.com/users/avtyul/orgs","repos_url":"https://api.github.com/users/avtyul/repos","events_url":"https://api.github.com/users/avtyul/events{/privacy}","received_events_url":"https://api.github.com/users/avtyul/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/avtyul/2016_1_XO","description":"Tic-tac-toe extended version","fork":true,"url":"https://api.github.com/repos/avtyul/2016_1_XO","forks_url":"https://api.github.com/repos/avtyul/2016_1_XO/forks","keys_url":"https://api.github.com/repos/avtyul/2016_1_XO/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avtyul/2016_1_XO/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avtyul/2016_1_XO/teams","hooks_url":"https://api.github.com/repos/avtyul/2016_1_XO/hooks","issue_events_url":"https://api.github.com/repos/avtyul/2016_1_XO/issues/events{/number}","events_url":"https://api.github.com/repos/avtyul/2016_1_XO/events","assignees_url":"https://api.github.com/repos/avtyul/2016_1_XO/assignees{/user}","branches_url":"https://api.github.com/repos/avtyul/2016_1_XO/branches{/branch}","tags_url":"https://api.github.com/repos/avtyul/2016_1_XO/tags","blobs_url":"https://api.github.com/repos/avtyul/2016_1_XO/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avtyul/2016_1_XO/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avtyul/2016_1_XO/git/refs{/sha}","trees_url":"https://api.github.com/repos/avtyul/2016_1_XO/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avtyul/2016_1_XO/statuses/{sha}","languages_url":"https://api.github.com/repos/avtyul/2016_1_XO/languages","stargazers_url":"https://api.github.com/repos/avtyul/2016_1_XO/stargazers","contributors_url":"https://api.github.com/repos/avtyul/2016_1_XO/contributors","subscribers_url":"https://api.github.com/repos/avtyul/2016_1_XO/subscribers","subscription_url":"https://api.github.com/repos/avtyul/2016_1_XO/subscription","commits_url":"https://api.github.com/repos/avtyul/2016_1_XO/commits{/sha}","git_commits_url":"https://api.github.com/repos/avtyul/2016_1_XO/git/commits{/sha}","comments_url":"https://api.github.com/repos/avtyul/2016_1_XO/comments{/number}","issue_comment_url":"https://api.github.com/repos/avtyul/2016_1_XO/issues/comments{/number}","contents_url":"https://api.github.com/repos/avtyul/2016_1_XO/contents/{+path}","compare_url":"https://api.github.com/repos/avtyul/2016_1_XO/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avtyul/2016_1_XO/merges","archive_url":"https://api.github.com/repos/avtyul/2016_1_XO/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avtyul/2016_1_XO/downloads","issues_url":"https://api.github.com/repos/avtyul/2016_1_XO/issues{/number}","pulls_url":"https://api.github.com/repos/avtyul/2016_1_XO/pulls{/number}","milestones_url":"https://api.github.com/repos/avtyul/2016_1_XO/milestones{/number}","notifications_url":"https://api.github.com/repos/avtyul/2016_1_XO/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avtyul/2016_1_XO/labels{/name}","releases_url":"https://api.github.com/repos/avtyul/2016_1_XO/releases{/id}","deployments_url":"https://api.github.com/repos/avtyul/2016_1_XO/deployments","created_at":"2016-02-15T12:59:39Z","updated_at":"2016-02-15T12:59:41Z","pushed_at":"2016-04-03T22:45:24Z","git_url":"git://github.com/avtyul/2016_1_XO.git","ssh_url":"git@github.com:avtyul/2016_1_XO.git","clone_url":"https://github.com/avtyul/2016_1_XO.git","svn_url":"https://github.com/avtyul/2016_1_XO","homepage":null,"size":4483,"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":"frontend-park-mail-ru:master","ref":"master","sha":"c86558f2a81cca49a72de6934f2099a1e1922bf9","user":{"login":"frontend-park-mail-ru","id":16650333,"avatar_url":"https://avatars.githubusercontent.com/u/16650333?v=3","gravatar_id":"","url":"https://api.github.com/users/frontend-park-mail-ru","html_url":"https://github.com/frontend-park-mail-ru","followers_url":"https://api.github.com/users/frontend-park-mail-ru/followers","following_url":"https://api.github.com/users/frontend-park-mail-ru/following{/other_user}","gists_url":"https://api.github.com/users/frontend-park-mail-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/frontend-park-mail-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frontend-park-mail-ru/subscriptions","organizations_url":"https://api.github.com/users/frontend-park-mail-ru/orgs","repos_url":"https://api.github.com/users/frontend-park-mail-ru/repos","events_url":"https://api.github.com/users/frontend-park-mail-ru/events{/privacy}","received_events_url":"https://api.github.com/users/frontend-park-mail-ru/received_events","type":"Organization","site_admin":false},"repo":{"id":51500404,"name":"2016_1_XO","full_name":"frontend-park-mail-ru/2016_1_XO","owner":{"login":"frontend-park-mail-ru","id":16650333,"avatar_url":"https://avatars.githubusercontent.com/u/16650333?v=3","gravatar_id":"","url":"https://api.github.com/users/frontend-park-mail-ru","html_url":"https://github.com/frontend-park-mail-ru","followers_url":"https://api.github.com/users/frontend-park-mail-ru/followers","following_url":"https://api.github.com/users/frontend-park-mail-ru/following{/other_user}","gists_url":"https://api.github.com/users/frontend-park-mail-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/frontend-park-mail-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frontend-park-mail-ru/subscriptions","organizations_url":"https://api.github.com/users/frontend-park-mail-ru/orgs","repos_url":"https://api.github.com/users/frontend-park-mail-ru/repos","events_url":"https://api.github.com/users/frontend-park-mail-ru/events{/privacy}","received_events_url":"https://api.github.com/users/frontend-park-mail-ru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/frontend-park-mail-ru/2016_1_XO","description":"Tic-tac-toe extended version","fork":false,"url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO","forks_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/forks","keys_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/teams","hooks_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/hooks","issue_events_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/issues/events{/number}","events_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/events","assignees_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/assignees{/user}","branches_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/branches{/branch}","tags_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/tags","blobs_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/git/refs{/sha}","trees_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/statuses/{sha}","languages_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/languages","stargazers_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/stargazers","contributors_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/contributors","subscribers_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/subscribers","subscription_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/subscription","commits_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/commits{/sha}","git_commits_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/git/commits{/sha}","comments_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/comments{/number}","issue_comment_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/issues/comments{/number}","contents_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/contents/{+path}","compare_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/merges","archive_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/downloads","issues_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/issues{/number}","pulls_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls{/number}","milestones_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/milestones{/number}","notifications_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/labels{/name}","releases_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/releases{/id}","deployments_url":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/deployments","created_at":"2016-02-11T07:34:38Z","updated_at":"2016-02-11T07:35:42Z","pushed_at":"2016-04-03T22:40:57Z","git_url":"git://github.com/frontend-park-mail-ru/2016_1_XO.git","ssh_url":"git@github.com:frontend-park-mail-ru/2016_1_XO.git","clone_url":"https://github.com/frontend-park-mail-ru/2016_1_XO.git","svn_url":"https://github.com/frontend-park-mail-ru/2016_1_XO","homepage":null,"size":3706,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/4"},"html":{"href":"https://github.com/frontend-park-mail-ru/2016_1_XO/pull/4"},"issue":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/issues/4"},"comments":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2016_1_XO/statuses/7dee6c92eed0438acde447f412249e3e9e01e2d6"}}}}