{"action":"created","comment":{"url":"https://api.github.com/repos/OperKH/book-editor/pulls/comments/55921387","id":55921387,"diff_hunk":"@@ -1,88 +1,61 @@\n export class pagesService {\n-    constructor ($q, $timeout, $log) {\n+    constructor ($resource, $log) {\n         'ngInject';\n \n         this.$log = $log;\n \n-        this.createDefered = (resolveData, errorMessage) => {\n-            let deferred = $q.defer();\n-            $timeout(() => {\n-                if (resolveData) {\n-                    deferred.resolve(resolveData);\n-                } else {\n-                    deferred.reject(errorMessage);\n-                }\n-            }, 1000);\n-            return deferred;\n-        };\n-\n+        this.pagesResource = () => $resource('https://book-editor.firebaseio.com/pages/:pageName.json', {}, {","path":"src/app/components/pagesService/pagesService.service.js","position":20,"original_position":20,"commit_id":"a5cfedb39ec37f14f96bb801a5e331aa35ee39fe","original_commit_id":"a5cfedb39ec37f14f96bb801a5e331aa35ee39fe","user":{"login":"xanf","id":200997,"avatar_url":"https://avatars.githubusercontent.com/u/200997?v=3","gravatar_id":"","url":"https://api.github.com/users/xanf","html_url":"https://github.com/xanf","followers_url":"https://api.github.com/users/xanf/followers","following_url":"https://api.github.com/users/xanf/following{/other_user}","gists_url":"https://api.github.com/users/xanf/gists{/gist_id}","starred_url":"https://api.github.com/users/xanf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xanf/subscriptions","organizations_url":"https://api.github.com/users/xanf/orgs","repos_url":"https://api.github.com/users/xanf/repos","events_url":"https://api.github.com/users/xanf/events{/privacy}","received_events_url":"https://api.github.com/users/xanf/received_events","type":"User","site_admin":false},"body":"Функция не нужна","created_at":"2016-03-12T13:19:21Z","updated_at":"2016-03-12T13:19:21Z","html_url":"https://github.com/OperKH/book-editor/pull/3#discussion_r55921387","pull_request_url":"https://api.github.com/repos/OperKH/book-editor/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/OperKH/book-editor/pulls/comments/55921387"},"html":{"href":"https://github.com/OperKH/book-editor/pull/3#discussion_r55921387"},"pull_request":{"href":"https://api.github.com/repos/OperKH/book-editor/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/OperKH/book-editor/pulls/3","id":61851414,"html_url":"https://github.com/OperKH/book-editor/pull/3","diff_url":"https://github.com/OperKH/book-editor/pull/3.diff","patch_url":"https://github.com/OperKH/book-editor/pull/3.patch","issue_url":"https://api.github.com/repos/OperKH/book-editor/issues/3","number":3,"state":"open","locked":false,"title":"Step 3","user":{"login":"OperKH","id":13971093,"avatar_url":"https://avatars.githubusercontent.com/u/13971093?v=3","gravatar_id":"","url":"https://api.github.com/users/OperKH","html_url":"https://github.com/OperKH","followers_url":"https://api.github.com/users/OperKH/followers","following_url":"https://api.github.com/users/OperKH/following{/other_user}","gists_url":"https://api.github.com/users/OperKH/gists{/gist_id}","starred_url":"https://api.github.com/users/OperKH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OperKH/subscriptions","organizations_url":"https://api.github.com/users/OperKH/orgs","repos_url":"https://api.github.com/users/OperKH/repos","events_url":"https://api.github.com/users/OperKH/events{/privacy}","received_events_url":"https://api.github.com/users/OperKH/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-06T19:07:47Z","updated_at":"2016-03-12T13:19:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a12a612390055a05d5844a5fa5b2cd328ab6726","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OperKH/book-editor/pulls/3/commits","review_comments_url":"https://api.github.com/repos/OperKH/book-editor/pulls/3/comments","review_comment_url":"https://api.github.com/repos/OperKH/book-editor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OperKH/book-editor/issues/3/comments","statuses_url":"https://api.github.com/repos/OperKH/book-editor/statuses/a5cfedb39ec37f14f96bb801a5e331aa35ee39fe","head":{"label":"OperKH:Step_3","ref":"Step_3","sha":"a5cfedb39ec37f14f96bb801a5e331aa35ee39fe","user":{"login":"OperKH","id":13971093,"avatar_url":"https://avatars.githubusercontent.com/u/13971093?v=3","gravatar_id":"","url":"https://api.github.com/users/OperKH","html_url":"https://github.com/OperKH","followers_url":"https://api.github.com/users/OperKH/followers","following_url":"https://api.github.com/users/OperKH/following{/other_user}","gists_url":"https://api.github.com/users/OperKH/gists{/gist_id}","starred_url":"https://api.github.com/users/OperKH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OperKH/subscriptions","organizations_url":"https://api.github.com/users/OperKH/orgs","repos_url":"https://api.github.com/users/OperKH/repos","events_url":"https://api.github.com/users/OperKH/events{/privacy}","received_events_url":"https://api.github.com/users/OperKH/received_events","type":"User","site_admin":false},"repo":{"id":52665751,"name":"book-editor","full_name":"OperKH/book-editor","owner":{"login":"OperKH","id":13971093,"avatar_url":"https://avatars.githubusercontent.com/u/13971093?v=3","gravatar_id":"","url":"https://api.github.com/users/OperKH","html_url":"https://github.com/OperKH","followers_url":"https://api.github.com/users/OperKH/followers","following_url":"https://api.github.com/users/OperKH/following{/other_user}","gists_url":"https://api.github.com/users/OperKH/gists{/gist_id}","starred_url":"https://api.github.com/users/OperKH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OperKH/subscriptions","organizations_url":"https://api.github.com/users/OperKH/orgs","repos_url":"https://api.github.com/users/OperKH/repos","events_url":"https://api.github.com/users/OperKH/events{/privacy}","received_events_url":"https://api.github.com/users/OperKH/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OperKH/book-editor","description":"Angular Book Editor","fork":false,"url":"https://api.github.com/repos/OperKH/book-editor","forks_url":"https://api.github.com/repos/OperKH/book-editor/forks","keys_url":"https://api.github.com/repos/OperKH/book-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OperKH/book-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OperKH/book-editor/teams","hooks_url":"https://api.github.com/repos/OperKH/book-editor/hooks","issue_events_url":"https://api.github.com/repos/OperKH/book-editor/issues/events{/number}","events_url":"https://api.github.com/repos/OperKH/book-editor/events","assignees_url":"https://api.github.com/repos/OperKH/book-editor/assignees{/user}","branches_url":"https://api.github.com/repos/OperKH/book-editor/branches{/branch}","tags_url":"https://api.github.com/repos/OperKH/book-editor/tags","blobs_url":"https://api.github.com/repos/OperKH/book-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OperKH/book-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OperKH/book-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/OperKH/book-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OperKH/book-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/OperKH/book-editor/languages","stargazers_url":"https://api.github.com/repos/OperKH/book-editor/stargazers","contributors_url":"https://api.github.com/repos/OperKH/book-editor/contributors","subscribers_url":"https://api.github.com/repos/OperKH/book-editor/subscribers","subscription_url":"https://api.github.com/repos/OperKH/book-editor/subscription","commits_url":"https://api.github.com/repos/OperKH/book-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/OperKH/book-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/OperKH/book-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/OperKH/book-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/OperKH/book-editor/contents/{+path}","compare_url":"https://api.github.com/repos/OperKH/book-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OperKH/book-editor/merges","archive_url":"https://api.github.com/repos/OperKH/book-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OperKH/book-editor/downloads","issues_url":"https://api.github.com/repos/OperKH/book-editor/issues{/number}","pulls_url":"https://api.github.com/repos/OperKH/book-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/OperKH/book-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/OperKH/book-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OperKH/book-editor/labels{/name}","releases_url":"https://api.github.com/repos/OperKH/book-editor/releases{/id}","deployments_url":"https://api.github.com/repos/OperKH/book-editor/deployments","created_at":"2016-02-27T12:29:18Z","updated_at":"2016-02-27T12:34:52Z","pushed_at":"2016-03-12T09:23:18Z","git_url":"git://github.com/OperKH/book-editor.git","ssh_url":"git@github.com:OperKH/book-editor.git","clone_url":"https://github.com/OperKH/book-editor.git","svn_url":"https://github.com/OperKH/book-editor","homepage":null,"size":23,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"OperKH:Step_2","ref":"Step_2","sha":"ea77006d4bf0993340b1473a92fde867569f3c2c","user":{"login":"OperKH","id":13971093,"avatar_url":"https://avatars.githubusercontent.com/u/13971093?v=3","gravatar_id":"","url":"https://api.github.com/users/OperKH","html_url":"https://github.com/OperKH","followers_url":"https://api.github.com/users/OperKH/followers","following_url":"https://api.github.com/users/OperKH/following{/other_user}","gists_url":"https://api.github.com/users/OperKH/gists{/gist_id}","starred_url":"https://api.github.com/users/OperKH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OperKH/subscriptions","organizations_url":"https://api.github.com/users/OperKH/orgs","repos_url":"https://api.github.com/users/OperKH/repos","events_url":"https://api.github.com/users/OperKH/events{/privacy}","received_events_url":"https://api.github.com/users/OperKH/received_events","type":"User","site_admin":false},"repo":{"id":52665751,"name":"book-editor","full_name":"OperKH/book-editor","owner":{"login":"OperKH","id":13971093,"avatar_url":"https://avatars.githubusercontent.com/u/13971093?v=3","gravatar_id":"","url":"https://api.github.com/users/OperKH","html_url":"https://github.com/OperKH","followers_url":"https://api.github.com/users/OperKH/followers","following_url":"https://api.github.com/users/OperKH/following{/other_user}","gists_url":"https://api.github.com/users/OperKH/gists{/gist_id}","starred_url":"https://api.github.com/users/OperKH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OperKH/subscriptions","organizations_url":"https://api.github.com/users/OperKH/orgs","repos_url":"https://api.github.com/users/OperKH/repos","events_url":"https://api.github.com/users/OperKH/events{/privacy}","received_events_url":"https://api.github.com/users/OperKH/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OperKH/book-editor","description":"Angular Book Editor","fork":false,"url":"https://api.github.com/repos/OperKH/book-editor","forks_url":"https://api.github.com/repos/OperKH/book-editor/forks","keys_url":"https://api.github.com/repos/OperKH/book-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OperKH/book-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OperKH/book-editor/teams","hooks_url":"https://api.github.com/repos/OperKH/book-editor/hooks","issue_events_url":"https://api.github.com/repos/OperKH/book-editor/issues/events{/number}","events_url":"https://api.github.com/repos/OperKH/book-editor/events","assignees_url":"https://api.github.com/repos/OperKH/book-editor/assignees{/user}","branches_url":"https://api.github.com/repos/OperKH/book-editor/branches{/branch}","tags_url":"https://api.github.com/repos/OperKH/book-editor/tags","blobs_url":"https://api.github.com/repos/OperKH/book-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OperKH/book-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OperKH/book-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/OperKH/book-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OperKH/book-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/OperKH/book-editor/languages","stargazers_url":"https://api.github.com/repos/OperKH/book-editor/stargazers","contributors_url":"https://api.github.com/repos/OperKH/book-editor/contributors","subscribers_url":"https://api.github.com/repos/OperKH/book-editor/subscribers","subscription_url":"https://api.github.com/repos/OperKH/book-editor/subscription","commits_url":"https://api.github.com/repos/OperKH/book-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/OperKH/book-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/OperKH/book-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/OperKH/book-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/OperKH/book-editor/contents/{+path}","compare_url":"https://api.github.com/repos/OperKH/book-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OperKH/book-editor/merges","archive_url":"https://api.github.com/repos/OperKH/book-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OperKH/book-editor/downloads","issues_url":"https://api.github.com/repos/OperKH/book-editor/issues{/number}","pulls_url":"https://api.github.com/repos/OperKH/book-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/OperKH/book-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/OperKH/book-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OperKH/book-editor/labels{/name}","releases_url":"https://api.github.com/repos/OperKH/book-editor/releases{/id}","deployments_url":"https://api.github.com/repos/OperKH/book-editor/deployments","created_at":"2016-02-27T12:29:18Z","updated_at":"2016-02-27T12:34:52Z","pushed_at":"2016-03-12T09:23:18Z","git_url":"git://github.com/OperKH/book-editor.git","ssh_url":"git@github.com:OperKH/book-editor.git","clone_url":"https://github.com/OperKH/book-editor.git","svn_url":"https://github.com/OperKH/book-editor","homepage":null,"size":23,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OperKH/book-editor/pulls/3"},"html":{"href":"https://github.com/OperKH/book-editor/pull/3"},"issue":{"href":"https://api.github.com/repos/OperKH/book-editor/issues/3"},"comments":{"href":"https://api.github.com/repos/OperKH/book-editor/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/OperKH/book-editor/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/OperKH/book-editor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OperKH/book-editor/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/OperKH/book-editor/statuses/a5cfedb39ec37f14f96bb801a5e331aa35ee39fe"}}}}