{"action":"closed","number":1205,"pull_request":{"url":"https://api.github.com/repos/driftyco/ng-cordova/pulls/1205","id":65019267,"html_url":"https://github.com/driftyco/ng-cordova/pull/1205","diff_url":"https://github.com/driftyco/ng-cordova/pull/1205.diff","patch_url":"https://github.com/driftyco/ng-cordova/pull/1205.patch","issue_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/1205","number":1205,"state":"closed","locked":false,"title":"Added if statements to the promise notify/reject/resolve. Fixes #1204","user":{"login":"elliotmendiola","id":16568775,"avatar_url":"https://avatars.githubusercontent.com/u/16568775?v=3","gravatar_id":"","url":"https://api.github.com/users/elliotmendiola","html_url":"https://github.com/elliotmendiola","followers_url":"https://api.github.com/users/elliotmendiola/followers","following_url":"https://api.github.com/users/elliotmendiola/following{/other_user}","gists_url":"https://api.github.com/users/elliotmendiola/gists{/gist_id}","starred_url":"https://api.github.com/users/elliotmendiola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliotmendiola/subscriptions","organizations_url":"https://api.github.com/users/elliotmendiola/orgs","repos_url":"https://api.github.com/users/elliotmendiola/repos","events_url":"https://api.github.com/users/elliotmendiola/events{/privacy}","received_events_url":"https://api.github.com/users/elliotmendiola/received_events","type":"User","site_admin":false},"body":"I ran into this error while writing a walkie-talkie feature for my app using $cordovaMedia, found a fix in my own local version.","created_at":"2016-04-01T23:44:31Z","updated_at":"2016-04-06T14:43:08Z","closed_at":"2016-04-06T14:43:08Z","merged_at":"2016-04-06T14:43:08Z","merge_commit_sha":"345d7e409668f73b58fcf1419d4493a61168ba2d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/driftyco/ng-cordova/pulls/1205/commits","review_comments_url":"https://api.github.com/repos/driftyco/ng-cordova/pulls/1205/comments","review_comment_url":"https://api.github.com/repos/driftyco/ng-cordova/pulls/comments{/number}","comments_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/1205/comments","statuses_url":"https://api.github.com/repos/driftyco/ng-cordova/statuses/fbac9b6d237abcd7465c7084ff9c68af9841fe2c","head":{"label":"elliotmendiola:master","ref":"master","sha":"fbac9b6d237abcd7465c7084ff9c68af9841fe2c","user":{"login":"elliotmendiola","id":16568775,"avatar_url":"https://avatars.githubusercontent.com/u/16568775?v=3","gravatar_id":"","url":"https://api.github.com/users/elliotmendiola","html_url":"https://github.com/elliotmendiola","followers_url":"https://api.github.com/users/elliotmendiola/followers","following_url":"https://api.github.com/users/elliotmendiola/following{/other_user}","gists_url":"https://api.github.com/users/elliotmendiola/gists{/gist_id}","starred_url":"https://api.github.com/users/elliotmendiola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliotmendiola/subscriptions","organizations_url":"https://api.github.com/users/elliotmendiola/orgs","repos_url":"https://api.github.com/users/elliotmendiola/repos","events_url":"https://api.github.com/users/elliotmendiola/events{/privacy}","received_events_url":"https://api.github.com/users/elliotmendiola/received_events","type":"User","site_admin":false},"repo":{"id":55268280,"name":"ng-cordova","full_name":"elliotmendiola/ng-cordova","owner":{"login":"elliotmendiola","id":16568775,"avatar_url":"https://avatars.githubusercontent.com/u/16568775?v=3","gravatar_id":"","url":"https://api.github.com/users/elliotmendiola","html_url":"https://github.com/elliotmendiola","followers_url":"https://api.github.com/users/elliotmendiola/followers","following_url":"https://api.github.com/users/elliotmendiola/following{/other_user}","gists_url":"https://api.github.com/users/elliotmendiola/gists{/gist_id}","starred_url":"https://api.github.com/users/elliotmendiola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliotmendiola/subscriptions","organizations_url":"https://api.github.com/users/elliotmendiola/orgs","repos_url":"https://api.github.com/users/elliotmendiola/repos","events_url":"https://api.github.com/users/elliotmendiola/events{/privacy}","received_events_url":"https://api.github.com/users/elliotmendiola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elliotmendiola/ng-cordova","description":"Native mobile services and features for native mobile web apps built with Cordova/PhoneGap","fork":true,"url":"https://api.github.com/repos/elliotmendiola/ng-cordova","forks_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/forks","keys_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/teams","hooks_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/hooks","issue_events_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/issues/events{/number}","events_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/events","assignees_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/assignees{/user}","branches_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/branches{/branch}","tags_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/tags","blobs_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/git/refs{/sha}","trees_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/statuses/{sha}","languages_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/languages","stargazers_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/stargazers","contributors_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/contributors","subscribers_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/subscribers","subscription_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/subscription","commits_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/commits{/sha}","git_commits_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/git/commits{/sha}","comments_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/comments{/number}","issue_comment_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/issues/comments{/number}","contents_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/contents/{+path}","compare_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/merges","archive_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/downloads","issues_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/issues{/number}","pulls_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/pulls{/number}","milestones_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/milestones{/number}","notifications_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/labels{/name}","releases_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/releases{/id}","deployments_url":"https://api.github.com/repos/elliotmendiola/ng-cordova/deployments","created_at":"2016-04-01T23:30:56Z","updated_at":"2016-04-01T23:30:57Z","pushed_at":"2016-04-01T23:40:21Z","git_url":"git://github.com/elliotmendiola/ng-cordova.git","ssh_url":"git@github.com:elliotmendiola/ng-cordova.git","clone_url":"https://github.com/elliotmendiola/ng-cordova.git","svn_url":"https://github.com/elliotmendiola/ng-cordova","homepage":"http://ngcordova.com/","size":25694,"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":"driftyco:dev-next","ref":"dev-next","sha":"346fd3b75822dbaf09b82168fb1d2dbb296e65aa","user":{"login":"driftyco","id":3171503,"avatar_url":"https://avatars.githubusercontent.com/u/3171503?v=3","gravatar_id":"","url":"https://api.github.com/users/driftyco","html_url":"https://github.com/driftyco","followers_url":"https://api.github.com/users/driftyco/followers","following_url":"https://api.github.com/users/driftyco/following{/other_user}","gists_url":"https://api.github.com/users/driftyco/gists{/gist_id}","starred_url":"https://api.github.com/users/driftyco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driftyco/subscriptions","organizations_url":"https://api.github.com/users/driftyco/orgs","repos_url":"https://api.github.com/users/driftyco/repos","events_url":"https://api.github.com/users/driftyco/events{/privacy}","received_events_url":"https://api.github.com/users/driftyco/received_events","type":"Organization","site_admin":false},"repo":{"id":20390951,"name":"ng-cordova","full_name":"driftyco/ng-cordova","owner":{"login":"driftyco","id":3171503,"avatar_url":"https://avatars.githubusercontent.com/u/3171503?v=3","gravatar_id":"","url":"https://api.github.com/users/driftyco","html_url":"https://github.com/driftyco","followers_url":"https://api.github.com/users/driftyco/followers","following_url":"https://api.github.com/users/driftyco/following{/other_user}","gists_url":"https://api.github.com/users/driftyco/gists{/gist_id}","starred_url":"https://api.github.com/users/driftyco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driftyco/subscriptions","organizations_url":"https://api.github.com/users/driftyco/orgs","repos_url":"https://api.github.com/users/driftyco/repos","events_url":"https://api.github.com/users/driftyco/events{/privacy}","received_events_url":"https://api.github.com/users/driftyco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/driftyco/ng-cordova","description":"Native mobile services and features for native mobile web apps built with Cordova/PhoneGap","fork":false,"url":"https://api.github.com/repos/driftyco/ng-cordova","forks_url":"https://api.github.com/repos/driftyco/ng-cordova/forks","keys_url":"https://api.github.com/repos/driftyco/ng-cordova/keys{/key_id}","collaborators_url":"https://api.github.com/repos/driftyco/ng-cordova/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/driftyco/ng-cordova/teams","hooks_url":"https://api.github.com/repos/driftyco/ng-cordova/hooks","issue_events_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/events{/number}","events_url":"https://api.github.com/repos/driftyco/ng-cordova/events","assignees_url":"https://api.github.com/repos/driftyco/ng-cordova/assignees{/user}","branches_url":"https://api.github.com/repos/driftyco/ng-cordova/branches{/branch}","tags_url":"https://api.github.com/repos/driftyco/ng-cordova/tags","blobs_url":"https://api.github.com/repos/driftyco/ng-cordova/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/driftyco/ng-cordova/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/driftyco/ng-cordova/git/refs{/sha}","trees_url":"https://api.github.com/repos/driftyco/ng-cordova/git/trees{/sha}","statuses_url":"https://api.github.com/repos/driftyco/ng-cordova/statuses/{sha}","languages_url":"https://api.github.com/repos/driftyco/ng-cordova/languages","stargazers_url":"https://api.github.com/repos/driftyco/ng-cordova/stargazers","contributors_url":"https://api.github.com/repos/driftyco/ng-cordova/contributors","subscribers_url":"https://api.github.com/repos/driftyco/ng-cordova/subscribers","subscription_url":"https://api.github.com/repos/driftyco/ng-cordova/subscription","commits_url":"https://api.github.com/repos/driftyco/ng-cordova/commits{/sha}","git_commits_url":"https://api.github.com/repos/driftyco/ng-cordova/git/commits{/sha}","comments_url":"https://api.github.com/repos/driftyco/ng-cordova/comments{/number}","issue_comment_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/comments{/number}","contents_url":"https://api.github.com/repos/driftyco/ng-cordova/contents/{+path}","compare_url":"https://api.github.com/repos/driftyco/ng-cordova/compare/{base}...{head}","merges_url":"https://api.github.com/repos/driftyco/ng-cordova/merges","archive_url":"https://api.github.com/repos/driftyco/ng-cordova/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/driftyco/ng-cordova/downloads","issues_url":"https://api.github.com/repos/driftyco/ng-cordova/issues{/number}","pulls_url":"https://api.github.com/repos/driftyco/ng-cordova/pulls{/number}","milestones_url":"https://api.github.com/repos/driftyco/ng-cordova/milestones{/number}","notifications_url":"https://api.github.com/repos/driftyco/ng-cordova/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/driftyco/ng-cordova/labels{/name}","releases_url":"https://api.github.com/repos/driftyco/ng-cordova/releases{/id}","deployments_url":"https://api.github.com/repos/driftyco/ng-cordova/deployments","created_at":"2014-06-02T02:01:49Z","updated_at":"2016-04-05T03:12:39Z","pushed_at":"2016-04-06T14:43:08Z","git_url":"git://github.com/driftyco/ng-cordova.git","ssh_url":"git@github.com:driftyco/ng-cordova.git","clone_url":"https://github.com/driftyco/ng-cordova.git","svn_url":"https://github.com/driftyco/ng-cordova","homepage":"http://ngcordova.com/","size":28093,"stargazers_count":3239,"watchers_count":3239,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":900,"mirror_url":null,"open_issues_count":139,"forks":900,"open_issues":139,"watchers":3239,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/driftyco/ng-cordova/pulls/1205"},"html":{"href":"https://github.com/driftyco/ng-cordova/pull/1205"},"issue":{"href":"https://api.github.com/repos/driftyco/ng-cordova/issues/1205"},"comments":{"href":"https://api.github.com/repos/driftyco/ng-cordova/issues/1205/comments"},"review_comments":{"href":"https://api.github.com/repos/driftyco/ng-cordova/pulls/1205/comments"},"review_comment":{"href":"https://api.github.com/repos/driftyco/ng-cordova/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/driftyco/ng-cordova/pulls/1205/commits"},"statuses":{"href":"https://api.github.com/repos/driftyco/ng-cordova/statuses/fbac9b6d237abcd7465c7084ff9c68af9841fe2c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"gortok","id":699891,"avatar_url":"https://avatars.githubusercontent.com/u/699891?v=3","gravatar_id":"","url":"https://api.github.com/users/gortok","html_url":"https://github.com/gortok","followers_url":"https://api.github.com/users/gortok/followers","following_url":"https://api.github.com/users/gortok/following{/other_user}","gists_url":"https://api.github.com/users/gortok/gists{/gist_id}","starred_url":"https://api.github.com/users/gortok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gortok/subscriptions","organizations_url":"https://api.github.com/users/gortok/orgs","repos_url":"https://api.github.com/users/gortok/repos","events_url":"https://api.github.com/users/gortok/events{/privacy}","received_events_url":"https://api.github.com/users/gortok/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":1}}