{"action":"created","issue":{"url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/157","labels_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/157/comments","events_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/157/events","html_url":"https://github.com/Bluefieldscom/intl-tel-input/issues/157","id":57017788,"number":157,"title":"Fetch wrong instance","user":{"login":"darionato","id":786003,"avatar_url":"https://avatars.githubusercontent.com/u/786003?v=3","gravatar_id":"","url":"https://api.github.com/users/darionato","html_url":"https://github.com/darionato","followers_url":"https://api.github.com/users/darionato/followers","following_url":"https://api.github.com/users/darionato/following{/other_user}","gists_url":"https://api.github.com/users/darionato/gists{/gist_id}","starred_url":"https://api.github.com/users/darionato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darionato/subscriptions","organizations_url":"https://api.github.com/users/darionato/orgs","repos_url":"https://api.github.com/users/darionato/repos","events_url":"https://api.github.com/users/darionato/events{/privacy}","received_events_url":"https://api.github.com/users/darionato/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-09T11:18:25Z","updated_at":"2015-02-20T02:55:28Z","closed_at":"2015-02-20T02:55:28Z","body":"I need to do this trick to avoid this error: 'intl-tel cannot read property '3' of undefined'\r\n\r\nIt fetch a wrong instance in the data of the element. Any help?\r\n\r\ntrick:\r\n\r\n// get the data element\r\nvar d = angular.element(tel).data(\"plugin_intlTelInput\");\r\n\r\n// check that the countryCodes not be null\r\nif ((telNumber != null) && !_.isUndefined(d.countryCodes)) {\r\n              return angular.element(tel).intlTelInput(\"setNumber\", telNumber);\r\n            }"},"comment":{"url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/comments/75181964","html_url":"https://github.com/Bluefieldscom/intl-tel-input/issues/157#issuecomment-75181964","issue_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/157","id":75181964,"user":{"login":"jackocnr","id":1186883,"avatar_url":"https://avatars.githubusercontent.com/u/1186883?v=3","gravatar_id":"","url":"https://api.github.com/users/jackocnr","html_url":"https://github.com/jackocnr","followers_url":"https://api.github.com/users/jackocnr/followers","following_url":"https://api.github.com/users/jackocnr/following{/other_user}","gists_url":"https://api.github.com/users/jackocnr/gists{/gist_id}","starred_url":"https://api.github.com/users/jackocnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackocnr/subscriptions","organizations_url":"https://api.github.com/users/jackocnr/orgs","repos_url":"https://api.github.com/users/jackocnr/repos","events_url":"https://api.github.com/users/jackocnr/events{/privacy}","received_events_url":"https://api.github.com/users/jackocnr/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T02:55:28Z","updated_at":"2015-02-20T02:55:28Z","body":"Closing due to inactivity."}}