{"action":"created","issue":{"url":"https://api.github.com/repos/hammerjs/hammer.js/issues/930","repository_url":"https://api.github.com/repos/hammerjs/hammer.js","labels_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/930/labels{/name}","comments_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/930/comments","events_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/930/events","html_url":"https://github.com/hammerjs/hammer.js/issues/930","id":137675393,"node_id":"MDU6SXNzdWUxMzc2NzUzOTM=","number":930,"title":"Hammer.js fails in node since window is undefined ","user":{"login":"joshunger","id":2301847,"node_id":"MDQ6VXNlcjIzMDE4NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/2301847?v=4","gravatar_id":"","url":"https://api.github.com/users/joshunger","html_url":"https://github.com/joshunger","followers_url":"https://api.github.com/users/joshunger/followers","following_url":"https://api.github.com/users/joshunger/following{/other_user}","gists_url":"https://api.github.com/users/joshunger/gists{/gist_id}","starred_url":"https://api.github.com/users/joshunger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshunger/subscriptions","organizations_url":"https://api.github.com/users/joshunger/orgs","repos_url":"https://api.github.com/users/joshunger/repos","events_url":"https://api.github.com/users/joshunger/events{/privacy}","received_events_url":"https://api.github.com/users/joshunger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-03-01T20:16:36Z","updated_at":"2018-06-07T15:32:41Z","closed_at":null,"author_association":"NONE","body":"Hammer.js fails in node since window is undefined.  Also document.\n\nLine 2568 assumes window -\nhttps://github.com/hammerjs/hammer.js/blob/master/hammer.js#L2568\n\nWe're trying to run a bundle produced by webpack in the web as well as node targets.  It would be helpful to include the same bundle even though we're not using hammer.js on the node side.\n\njQuery does something like -\n\n`typeof window !== \"undefined\" ? window : this`\n"},"comment":{"url":"https://api.github.com/repos/hammerjs/hammer.js/issues/comments/395464679","html_url":"https://github.com/hammerjs/hammer.js/issues/930#issuecomment-395464679","issue_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/930","id":395464679,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTQ2NDY3OQ==","user":{"login":"polymer940c","id":22082264,"node_id":"MDQ6VXNlcjIyMDgyMjY0","avatar_url":"https://avatars3.githubusercontent.com/u/22082264?v=4","gravatar_id":"","url":"https://api.github.com/users/polymer940c","html_url":"https://github.com/polymer940c","followers_url":"https://api.github.com/users/polymer940c/followers","following_url":"https://api.github.com/users/polymer940c/following{/other_user}","gists_url":"https://api.github.com/users/polymer940c/gists{/gist_id}","starred_url":"https://api.github.com/users/polymer940c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polymer940c/subscriptions","organizations_url":"https://api.github.com/users/polymer940c/orgs","repos_url":"https://api.github.com/users/polymer940c/repos","events_url":"https://api.github.com/users/polymer940c/events{/privacy}","received_events_url":"https://api.github.com/users/polymer940c/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T15:32:41Z","updated_at":"2018-06-07T15:32:41Z","author_association":"NONE","body":"Got a fix. I downloaded the `hammer.min.js`.   \r\nJust wrap the `if((typeof document !== 'undefined') && (typeof window !== 'undefined')){ ALL_THE_HAMMER_MIN_JS }`"}}
{"actor":{"display_login":"polymer940c"}}