{"action":"created","issue":{"url":"https://api.github.com/repos/Carrooi/Js-GoogleMapsLoader/issues/42","repository_url":"https://api.github.com/repos/Carrooi/Js-GoogleMapsLoader","labels_url":"https://api.github.com/repos/Carrooi/Js-GoogleMapsLoader/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/Carrooi/Js-GoogleMapsLoader/issues/42/comments","events_url":"https://api.github.com/repos/Carrooi/Js-GoogleMapsLoader/issues/42/events","html_url":"https://github.com/Carrooi/Js-GoogleMapsLoader/issues/42","id":193578397,"number":42,"title":"Support for error-handling callback","user":{"login":"a1gemmel","id":7517663,"avatar_url":"https://avatars.githubusercontent.com/u/7517663?v=3","gravatar_id":"","url":"https://api.github.com/users/a1gemmel","html_url":"https://github.com/a1gemmel","followers_url":"https://api.github.com/users/a1gemmel/followers","following_url":"https://api.github.com/users/a1gemmel/following{/other_user}","gists_url":"https://api.github.com/users/a1gemmel/gists{/gist_id}","starred_url":"https://api.github.com/users/a1gemmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1gemmel/subscriptions","organizations_url":"https://api.github.com/users/a1gemmel/orgs","repos_url":"https://api.github.com/users/a1gemmel/repos","events_url":"https://api.github.com/users/a1gemmel/events{/privacy}","received_events_url":"https://api.github.com/users/a1gemmel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-05T18:46:51Z","updated_at":"2016-12-07T08:30:21Z","closed_at":null,"body":"For my use-case of this loader, it would be nice to have support for catching problems with loading the API, like `NoApiKeys` or `InvalidApiKey`.\r\n\r\nSomething like:\r\n```javascript\r\nGoogleMapsLoader.load((google, errorState) => {\r\n   if (errorState) {\r\n       // graceful degradation\r\n    } else {\r\n        // do thing\r\n    }\r\n});\r\n```\r\nor \r\n```javascript\r\nGoogleMapsLoader.load(\r\n    (google) => { /* do thing */ }, \r\n    (err) => { /* graceful degradation */}\r\n);\r\n```\r\n\r\nIf this is something that other people have interest in, I can look into making a PR.\r\n"},"comment":{"url":"https://api.github.com/repos/Carrooi/Js-GoogleMapsLoader/issues/comments/265386682","html_url":"https://github.com/Carrooi/Js-GoogleMapsLoader/issues/42#issuecomment-265386682","issue_url":"https://api.github.com/repos/Carrooi/Js-GoogleMapsLoader/issues/42","id":265386682,"user":{"login":"davidkudera","id":1174072,"avatar_url":"https://avatars.githubusercontent.com/u/1174072?v=3","gravatar_id":"","url":"https://api.github.com/users/davidkudera","html_url":"https://github.com/davidkudera","followers_url":"https://api.github.com/users/davidkudera/followers","following_url":"https://api.github.com/users/davidkudera/following{/other_user}","gists_url":"https://api.github.com/users/davidkudera/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkudera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkudera/subscriptions","organizations_url":"https://api.github.com/users/davidkudera/orgs","repos_url":"https://api.github.com/users/davidkudera/repos","events_url":"https://api.github.com/users/davidkudera/events{/privacy}","received_events_url":"https://api.github.com/users/davidkudera/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T08:30:21Z","updated_at":"2016-12-07T08:30:21Z","body":"Please, look at issue #38 where we discussed promise support.\r\n\r\nAlso keep in mind that there can be many `load()` calls (before or after google library is loaded)."}}
{"actor":{"display_login":"davidkudera"}}