{"action":"created","issue":{"url":"https://api.github.com/repos/ChadKillingsworth/geolocation-marker/issues/15","repository_url":"https://api.github.com/repos/ChadKillingsworth/geolocation-marker","labels_url":"https://api.github.com/repos/ChadKillingsworth/geolocation-marker/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/ChadKillingsworth/geolocation-marker/issues/15/comments","events_url":"https://api.github.com/repos/ChadKillingsworth/geolocation-marker/issues/15/events","html_url":"https://github.com/ChadKillingsworth/geolocation-marker/issues/15","id":183836582,"number":15,"title":"Trying to use with jQuery.getScript()","user":{"login":"cheesegrits","id":934456,"avatar_url":"https://avatars.githubusercontent.com/u/934456?v=3","gravatar_id":"","url":"https://api.github.com/users/cheesegrits","html_url":"https://github.com/cheesegrits","followers_url":"https://api.github.com/users/cheesegrits/followers","following_url":"https://api.github.com/users/cheesegrits/following{/other_user}","gists_url":"https://api.github.com/users/cheesegrits/gists{/gist_id}","starred_url":"https://api.github.com/users/cheesegrits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheesegrits/subscriptions","organizations_url":"https://api.github.com/users/cheesegrits/orgs","repos_url":"https://api.github.com/users/cheesegrits/repos","events_url":"https://api.github.com/users/cheesegrits/events{/privacy}","received_events_url":"https://api.github.com/users/cheesegrits/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-19T00:26:02Z","updated_at":"2016-10-19T02:35:52Z","closed_at":null,"body":"Hi,\r\n\r\nI'm coding in a shared sandbox (the Joomla CMS), where for various reasons I have to load the maps API dynamically.  I'm trying to then load geolocation-marker from within my maps callback:\r\n\r\n```javascript\r\n\t\t\t\tvar self = this;\r\n\t\t\t\tjQuery.getScript(src)\r\n\t\t\t\t\t.done(function (data, textStatus, jqxhr) {\r\n\t\t\t\t\t\tself.geoMarker = new GeolocationMarker(self.map);\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.fail(function( jqxhr, settings, exception ) {\r\n\t\t\t\t\t\tconsole.log('dammit');\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n```\r\n\r\n... but no matter what I try\r\n\r\nUncaught ReferenceError: GeolocationMarker is not defined(…)\r\n\r\nI don't think it's a race condition with the script not having executed, as I've tried all kinds of ways.\r\n\r\nAny ideas?\r\n"},"comment":{"url":"https://api.github.com/repos/ChadKillingsworth/geolocation-marker/issues/comments/254694636","html_url":"https://github.com/ChadKillingsworth/geolocation-marker/issues/15#issuecomment-254694636","issue_url":"https://api.github.com/repos/ChadKillingsworth/geolocation-marker/issues/15","id":254694636,"user":{"login":"ChadKillingsworth","id":1247639,"avatar_url":"https://avatars.githubusercontent.com/u/1247639?v=3","gravatar_id":"","url":"https://api.github.com/users/ChadKillingsworth","html_url":"https://github.com/ChadKillingsworth","followers_url":"https://api.github.com/users/ChadKillingsworth/followers","following_url":"https://api.github.com/users/ChadKillingsworth/following{/other_user}","gists_url":"https://api.github.com/users/ChadKillingsworth/gists{/gist_id}","starred_url":"https://api.github.com/users/ChadKillingsworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChadKillingsworth/subscriptions","organizations_url":"https://api.github.com/users/ChadKillingsworth/orgs","repos_url":"https://api.github.com/users/ChadKillingsworth/repos","events_url":"https://api.github.com/users/ChadKillingsworth/events{/privacy}","received_events_url":"https://api.github.com/users/ChadKillingsworth/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T02:35:52Z","updated_at":"2016-10-19T02:35:52Z","body":"So rather than use jQuery, can't you use requirejs in your callback? "}}
{"actor":{"display_login":"ChadKillingsworth"}}