{"action":"created","comment":{"url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/comments/48224810","id":48224810,"diff_hunk":"@@ -63,10 +63,13 @@ exports.setDefaults = function (newDefaults) {\n  *      The scope for the callback function\n  */\n exports.schedule = function (opts, callback, scope) {\n-    this.registerPermission(function(granted) {\n+    this.hasPermission(function(granted) {\n \n-        if (!granted)\n-            return;\n+        if (!granted) {\n+            this.registerPermission(function(result) {\n+                if (!result) return;\n+            }, this);\n+        }\n ","path":"www/local-notification-core.js","position":14,"original_position":14,"commit_id":"fdaf6fee64f990c04e455523446f094c3cd1bb74","original_commit_id":"fdaf6fee64f990c04e455523446f094c3cd1bb74","user":{"login":"atakayama","id":8264569,"avatar_url":"https://avatars.githubusercontent.com/u/8264569?v=3","gravatar_id":"","url":"https://api.github.com/users/atakayama","html_url":"https://github.com/atakayama","followers_url":"https://api.github.com/users/atakayama/followers","following_url":"https://api.github.com/users/atakayama/following{/other_user}","gists_url":"https://api.github.com/users/atakayama/gists{/gist_id}","starred_url":"https://api.github.com/users/atakayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atakayama/subscriptions","organizations_url":"https://api.github.com/users/atakayama/orgs","repos_url":"https://api.github.com/users/atakayama/repos","events_url":"https://api.github.com/users/atakayama/events{/privacy}","received_events_url":"https://api.github.com/users/atakayama/received_events","type":"User","site_admin":false},"body":"これだと、registerPermissionの結果がtrueだろうとfalseだろうと、73行目以降が実行されることになりませんか？","created_at":"2015-12-22T06:18:06Z","updated_at":"2015-12-22T06:18:06Z","html_url":"https://github.com/atakayama/cordova-plugin-local-notifications/pull/1#discussion_r48224810","pull_request_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/comments/48224810"},"html":{"href":"https://github.com/atakayama/cordova-plugin-local-notifications/pull/1#discussion_r48224810"},"pull_request":{"href":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/1","id":54324149,"html_url":"https://github.com/atakayama/cordova-plugin-local-notifications/pull/1","diff_url":"https://github.com/atakayama/cordova-plugin-local-notifications/pull/1.diff","patch_url":"https://github.com/atakayama/cordova-plugin-local-notifications/pull/1.patch","issue_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/issues/1","number":1,"state":"open","locked":false,"title":"ローカル通知のスケジュール時の処理を修正","user":{"login":"KunihiroChiyo","id":10292633,"avatar_url":"https://avatars.githubusercontent.com/u/10292633?v=3","gravatar_id":"","url":"https://api.github.com/users/KunihiroChiyo","html_url":"https://github.com/KunihiroChiyo","followers_url":"https://api.github.com/users/KunihiroChiyo/followers","following_url":"https://api.github.com/users/KunihiroChiyo/following{/other_user}","gists_url":"https://api.github.com/users/KunihiroChiyo/gists{/gist_id}","starred_url":"https://api.github.com/users/KunihiroChiyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KunihiroChiyo/subscriptions","organizations_url":"https://api.github.com/users/KunihiroChiyo/orgs","repos_url":"https://api.github.com/users/KunihiroChiyo/repos","events_url":"https://api.github.com/users/KunihiroChiyo/events{/privacy}","received_events_url":"https://api.github.com/users/KunihiroChiyo/received_events","type":"User","site_admin":false},"body":"変更前) 権限の登録処理\r\n変更後) 権限の所持確認処理","created_at":"2015-12-22T01:45:13Z","updated_at":"2015-12-22T06:18:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7120b19c7c49acb1d1348ad1c57d44fe47f20ddb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/1/commits","review_comments_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/1/comments","review_comment_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/issues/1/comments","statuses_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/statuses/fdaf6fee64f990c04e455523446f094c3cd1bb74","head":{"label":"atakayama:modiry-0.8.2","ref":"modiry-0.8.2","sha":"fdaf6fee64f990c04e455523446f094c3cd1bb74","user":{"login":"atakayama","id":8264569,"avatar_url":"https://avatars.githubusercontent.com/u/8264569?v=3","gravatar_id":"","url":"https://api.github.com/users/atakayama","html_url":"https://github.com/atakayama","followers_url":"https://api.github.com/users/atakayama/followers","following_url":"https://api.github.com/users/atakayama/following{/other_user}","gists_url":"https://api.github.com/users/atakayama/gists{/gist_id}","starred_url":"https://api.github.com/users/atakayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atakayama/subscriptions","organizations_url":"https://api.github.com/users/atakayama/orgs","repos_url":"https://api.github.com/users/atakayama/repos","events_url":"https://api.github.com/users/atakayama/events{/privacy}","received_events_url":"https://api.github.com/users/atakayama/received_events","type":"User","site_admin":false},"repo":{"id":48368227,"name":"cordova-plugin-local-notifications","full_name":"atakayama/cordova-plugin-local-notifications","owner":{"login":"atakayama","id":8264569,"avatar_url":"https://avatars.githubusercontent.com/u/8264569?v=3","gravatar_id":"","url":"https://api.github.com/users/atakayama","html_url":"https://github.com/atakayama","followers_url":"https://api.github.com/users/atakayama/followers","following_url":"https://api.github.com/users/atakayama/following{/other_user}","gists_url":"https://api.github.com/users/atakayama/gists{/gist_id}","starred_url":"https://api.github.com/users/atakayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atakayama/subscriptions","organizations_url":"https://api.github.com/users/atakayama/orgs","repos_url":"https://api.github.com/users/atakayama/repos","events_url":"https://api.github.com/users/atakayama/events{/privacy}","received_events_url":"https://api.github.com/users/atakayama/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/atakayama/cordova-plugin-local-notifications","description":"Cordova Local-Notification Plugin","fork":true,"url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications","forks_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/forks","keys_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/teams","hooks_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/hooks","issue_events_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/issues/events{/number}","events_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/events","assignees_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/assignees{/user}","branches_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/branches{/branch}","tags_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/tags","blobs_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/git/refs{/sha}","trees_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/statuses/{sha}","languages_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/languages","stargazers_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/stargazers","contributors_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/contributors","subscribers_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/subscribers","subscription_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/subscription","commits_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/commits{/sha}","git_commits_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/git/commits{/sha}","comments_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/comments{/number}","issue_comment_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/issues/comments{/number}","contents_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/contents/{+path}","compare_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/merges","archive_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/downloads","issues_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/issues{/number}","pulls_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls{/number}","milestones_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/milestones{/number}","notifications_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/labels{/name}","releases_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/releases{/id}","created_at":"2015-12-21T11:29:06Z","updated_at":"2015-12-21T11:29:08Z","pushed_at":"2015-12-22T05:35:23Z","git_url":"git://github.com/atakayama/cordova-plugin-local-notifications.git","ssh_url":"git@github.com:atakayama/cordova-plugin-local-notifications.git","clone_url":"https://github.com/atakayama/cordova-plugin-local-notifications.git","svn_url":"https://github.com/atakayama/cordova-plugin-local-notifications","homepage":"","size":19336,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"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":"dev"}},"base":{"label":"atakayama:dev","ref":"dev","sha":"9b54ec61dbb6cfc3de22dae42322f0f81e065b94","user":{"login":"atakayama","id":8264569,"avatar_url":"https://avatars.githubusercontent.com/u/8264569?v=3","gravatar_id":"","url":"https://api.github.com/users/atakayama","html_url":"https://github.com/atakayama","followers_url":"https://api.github.com/users/atakayama/followers","following_url":"https://api.github.com/users/atakayama/following{/other_user}","gists_url":"https://api.github.com/users/atakayama/gists{/gist_id}","starred_url":"https://api.github.com/users/atakayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atakayama/subscriptions","organizations_url":"https://api.github.com/users/atakayama/orgs","repos_url":"https://api.github.com/users/atakayama/repos","events_url":"https://api.github.com/users/atakayama/events{/privacy}","received_events_url":"https://api.github.com/users/atakayama/received_events","type":"User","site_admin":false},"repo":{"id":48368227,"name":"cordova-plugin-local-notifications","full_name":"atakayama/cordova-plugin-local-notifications","owner":{"login":"atakayama","id":8264569,"avatar_url":"https://avatars.githubusercontent.com/u/8264569?v=3","gravatar_id":"","url":"https://api.github.com/users/atakayama","html_url":"https://github.com/atakayama","followers_url":"https://api.github.com/users/atakayama/followers","following_url":"https://api.github.com/users/atakayama/following{/other_user}","gists_url":"https://api.github.com/users/atakayama/gists{/gist_id}","starred_url":"https://api.github.com/users/atakayama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atakayama/subscriptions","organizations_url":"https://api.github.com/users/atakayama/orgs","repos_url":"https://api.github.com/users/atakayama/repos","events_url":"https://api.github.com/users/atakayama/events{/privacy}","received_events_url":"https://api.github.com/users/atakayama/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/atakayama/cordova-plugin-local-notifications","description":"Cordova Local-Notification Plugin","fork":true,"url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications","forks_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/forks","keys_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/teams","hooks_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/hooks","issue_events_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/issues/events{/number}","events_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/events","assignees_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/assignees{/user}","branches_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/branches{/branch}","tags_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/tags","blobs_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/git/refs{/sha}","trees_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/statuses/{sha}","languages_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/languages","stargazers_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/stargazers","contributors_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/contributors","subscribers_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/subscribers","subscription_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/subscription","commits_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/commits{/sha}","git_commits_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/git/commits{/sha}","comments_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/comments{/number}","issue_comment_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/issues/comments{/number}","contents_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/contents/{+path}","compare_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/merges","archive_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/downloads","issues_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/issues{/number}","pulls_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls{/number}","milestones_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/milestones{/number}","notifications_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/labels{/name}","releases_url":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/releases{/id}","created_at":"2015-12-21T11:29:06Z","updated_at":"2015-12-21T11:29:08Z","pushed_at":"2015-12-22T05:35:23Z","git_url":"git://github.com/atakayama/cordova-plugin-local-notifications.git","ssh_url":"git@github.com:atakayama/cordova-plugin-local-notifications.git","clone_url":"https://github.com/atakayama/cordova-plugin-local-notifications.git","svn_url":"https://github.com/atakayama/cordova-plugin-local-notifications","homepage":"","size":19336,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"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":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/1"},"html":{"href":"https://github.com/atakayama/cordova-plugin-local-notifications/pull/1"},"issue":{"href":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/issues/1"},"comments":{"href":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/atakayama/cordova-plugin-local-notifications/statuses/fdaf6fee64f990c04e455523446f094c3cd1bb74"}}}}