{"action":"created","issue":{"url":"https://api.github.com/repos/Ahimta/bc-phone-number/issues/3","labels_url":"https://api.github.com/repos/Ahimta/bc-phone-number/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Ahimta/bc-phone-number/issues/3/comments","events_url":"https://api.github.com/repos/Ahimta/bc-phone-number/issues/3/events","html_url":"https://github.com/Ahimta/bc-phone-number/issues/3","id":111090545,"number":3,"title":"Better error message if dependencies are not loaded","user":{"login":"Sjors","id":10217,"avatar_url":"https://avatars.githubusercontent.com/u/10217?v=3","gravatar_id":"","url":"https://api.github.com/users/Sjors","html_url":"https://github.com/Sjors","followers_url":"https://api.github.com/users/Sjors/followers","following_url":"https://api.github.com/users/Sjors/following{/other_user}","gists_url":"https://api.github.com/users/Sjors/gists{/gist_id}","starred_url":"https://api.github.com/users/Sjors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sjors/subscriptions","organizations_url":"https://api.github.com/users/Sjors/orgs","repos_url":"https://api.github.com/users/Sjors/repos","events_url":"https://api.github.com/users/Sjors/events{/privacy}","received_events_url":"https://api.github.com/users/Sjors/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-13T02:23:47Z","updated_at":"2015-10-13T13:58:45Z","closed_at":"2015-10-13T13:52:43Z","body":"If I \"forget\" to load a dependency Javascript, I get a console error message like this:\r\n\r\n`Cannot read property 'getCountryByIso2Code' of undefined`\r\n\r\nIt would be better if you check for the presence of dependencies and throw an error like:\r\n\r\n`bc-countries not found, did you forget to load the Javascript?`\r\n\r\nAlso in the README, you should probably add instructions to add required script tags to index.html or a Grunt task."},"comment":{"url":"https://api.github.com/repos/Ahimta/bc-phone-number/issues/comments/147723308","html_url":"https://github.com/Ahimta/bc-phone-number/issues/3#issuecomment-147723308","issue_url":"https://api.github.com/repos/Ahimta/bc-phone-number/issues/3","id":147723308,"user":{"login":"Ahimta","id":3470403,"avatar_url":"https://avatars.githubusercontent.com/u/3470403?v=3","gravatar_id":"","url":"https://api.github.com/users/Ahimta","html_url":"https://github.com/Ahimta","followers_url":"https://api.github.com/users/Ahimta/followers","following_url":"https://api.github.com/users/Ahimta/following{/other_user}","gists_url":"https://api.github.com/users/Ahimta/gists{/gist_id}","starred_url":"https://api.github.com/users/Ahimta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ahimta/subscriptions","organizations_url":"https://api.github.com/users/Ahimta/orgs","repos_url":"https://api.github.com/users/Ahimta/repos","events_url":"https://api.github.com/users/Ahimta/events{/privacy}","received_events_url":"https://api.github.com/users/Ahimta/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T13:58:45Z","updated_at":"2015-10-13T13:58:45Z","body":"I personally use [wiredep](https://github.com/taptapship/wiredep).\r\nIt automatically injects your bower dependencies in the correct order.\r\n\r\nI use it [here](https://github.com/Ahimta/bc-phone-number/blob/84ebec4c15e57de0280c85c2750b13f2ce1c9b0e/demo/index.html#L8-L19)"}}