{"action":"created","issue":{"url":"https://api.github.com/repos/WickyNilliams/headroom.js/issues/299","repository_url":"https://api.github.com/repos/WickyNilliams/headroom.js","labels_url":"https://api.github.com/repos/WickyNilliams/headroom.js/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/WickyNilliams/headroom.js/issues/299/comments","events_url":"https://api.github.com/repos/WickyNilliams/headroom.js/issues/299/events","html_url":"https://github.com/WickyNilliams/headroom.js/issues/299","id":316829815,"number":299,"title":"Uncaught ReferenceError: Headroom is not defined","user":{"login":"visualasparagus","id":4904741,"avatar_url":"https://avatars1.githubusercontent.com/u/4904741?v=4","gravatar_id":"","url":"https://api.github.com/users/visualasparagus","html_url":"https://github.com/visualasparagus","followers_url":"https://api.github.com/users/visualasparagus/followers","following_url":"https://api.github.com/users/visualasparagus/following{/other_user}","gists_url":"https://api.github.com/users/visualasparagus/gists{/gist_id}","starred_url":"https://api.github.com/users/visualasparagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visualasparagus/subscriptions","organizations_url":"https://api.github.com/users/visualasparagus/orgs","repos_url":"https://api.github.com/users/visualasparagus/repos","events_url":"https://api.github.com/users/visualasparagus/events{/privacy}","received_events_url":"https://api.github.com/users/visualasparagus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-23T14:10:12Z","updated_at":"2018-05-13T16:54:34Z","closed_at":null,"author_association":"NONE","body":"I've been trying to implement headroom.js in a new project using jQuery. The version of headroom.js being used is 0.9.4 and was installed via `yarn add headroom.js` \r\n\r\nHowever, I'm getting a JavaScript reference error `Uncaught ReferenceError: Headroom is not defined`. This error is happening in the `jQuery.headroom.js` file.\r\n\r\nline 23: `options = $.extend(true, {}, Headroom.options, options);`\r\n\r\nThe import statements being used are\r\n```\r\nimport 'headroom.js/dist/headroom.js';\r\nimport 'headroom.js/dist/jQuery.headroom.js';\r\n```\r\n\r\nMy workaround for this has been to do the following. It doesn't seem like best practice though and perhaps the jQuery plugin should reference the global window scope?\r\n\r\n```\r\nimport Headroom from 'headroom.js/dist/headroom.js';\r\nwindow.Headroom = Headroom;\r\nimport 'headroom.js/dist/jQuery.headroom.js';\r\n```\r\n\r\nAny ideas or comments?"},"comment":{"url":"https://api.github.com/repos/WickyNilliams/headroom.js/issues/comments/388640663","html_url":"https://github.com/WickyNilliams/headroom.js/issues/299#issuecomment-388640663","issue_url":"https://api.github.com/repos/WickyNilliams/headroom.js/issues/299","id":388640663,"user":{"login":"bonlando","id":6441471,"avatar_url":"https://avatars3.githubusercontent.com/u/6441471?v=4","gravatar_id":"","url":"https://api.github.com/users/bonlando","html_url":"https://github.com/bonlando","followers_url":"https://api.github.com/users/bonlando/followers","following_url":"https://api.github.com/users/bonlando/following{/other_user}","gists_url":"https://api.github.com/users/bonlando/gists{/gist_id}","starred_url":"https://api.github.com/users/bonlando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonlando/subscriptions","organizations_url":"https://api.github.com/users/bonlando/orgs","repos_url":"https://api.github.com/users/bonlando/repos","events_url":"https://api.github.com/users/bonlando/events{/privacy}","received_events_url":"https://api.github.com/users/bonlando/received_events","type":"User","site_admin":false},"created_at":"2018-05-13T16:54:34Z","updated_at":"2018-05-13T16:54:34Z","author_association":"NONE","body":"i'm getting the same errors...same import statements...any ideas?"}}
{"actor":{"display_login":"bonlando"}}