{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3187","repository_url":"https://api.github.com/repos/Leaflet/Leaflet","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3187/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3187/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3187/events","html_url":"https://github.com/Leaflet/Leaflet/issues/3187","id":56076661,"number":3187,"title":"Leaflet \"window is not defined\" when working with Browserify due to use of \"this\"","user":{"login":"JordanTheriault","id":5931078,"avatar_url":"https://avatars.githubusercontent.com/u/5931078?v=3","gravatar_id":"","url":"https://api.github.com/users/JordanTheriault","html_url":"https://github.com/JordanTheriault","followers_url":"https://api.github.com/users/JordanTheriault/followers","following_url":"https://api.github.com/users/JordanTheriault/following{/other_user}","gists_url":"https://api.github.com/users/JordanTheriault/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanTheriault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanTheriault/subscriptions","organizations_url":"https://api.github.com/users/JordanTheriault/orgs","repos_url":"https://api.github.com/users/JordanTheriault/repos","events_url":"https://api.github.com/users/JordanTheriault/events{/privacy}","received_events_url":"https://api.github.com/users/JordanTheriault/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Leaflet/Leaflet/labels/bug","name":"bug","color":"EBC3C3"},{"url":"https://api.github.com/repos/Leaflet/Leaflet/labels/needs%20more%20info","name":"needs more info","color":"fad8c7"},{"url":"https://api.github.com/repos/Leaflet/Leaflet/labels/stable","name":"stable","color":"e1c9f0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/29","html_url":"https://github.com/Leaflet/Leaflet/milestones/0.7.x","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/29/labels","id":1444298,"number":29,"title":"0.7.x","description":"Maintenance of bugs in the 0.7.x series","creator":{"login":"IvanSanchez","id":1125786,"avatar_url":"https://avatars.githubusercontent.com/u/1125786?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanSanchez","html_url":"https://github.com/IvanSanchez","followers_url":"https://api.github.com/users/IvanSanchez/followers","following_url":"https://api.github.com/users/IvanSanchez/following{/other_user}","gists_url":"https://api.github.com/users/IvanSanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanSanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanSanchez/subscriptions","organizations_url":"https://api.github.com/users/IvanSanchez/orgs","repos_url":"https://api.github.com/users/IvanSanchez/repos","events_url":"https://api.github.com/users/IvanSanchez/events{/privacy}","received_events_url":"https://api.github.com/users/IvanSanchez/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":5,"state":"open","created_at":"2015-12-04T14:31:25Z","updated_at":"2016-06-22T14:01:16Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2015-01-30T19:50:49Z","updated_at":"2016-06-25T06:24:36Z","closed_at":null,"body":"I'm receiving the error \"window not defined\" which stems from leaflet's use of this when referring to window. [I have 0.7.3 of the npm leaflet version](https://www.npmjs.com/package/leaflet). \r\n\r\n```\r\nwindow is not defined\r\n    at Object.<anonymous> (/node_modules/leaflet/dist/leaflet-src.js:9180:3)\r\n```\r\n\r\n[This](https://github.com/substack/node-browserify/issues/372) issue references it but the issue does not seem to actually be resolved despite the closed status."},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/228515107","html_url":"https://github.com/Leaflet/Leaflet/issues/3187#issuecomment-228515107","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/3187","id":228515107,"user":{"login":"miss61008596","id":6361237,"avatar_url":"https://avatars.githubusercontent.com/u/6361237?v=3","gravatar_id":"","url":"https://api.github.com/users/miss61008596","html_url":"https://github.com/miss61008596","followers_url":"https://api.github.com/users/miss61008596/followers","following_url":"https://api.github.com/users/miss61008596/following{/other_user}","gists_url":"https://api.github.com/users/miss61008596/gists{/gist_id}","starred_url":"https://api.github.com/users/miss61008596/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miss61008596/subscriptions","organizations_url":"https://api.github.com/users/miss61008596/orgs","repos_url":"https://api.github.com/users/miss61008596/repos","events_url":"https://api.github.com/users/miss61008596/events{/privacy}","received_events_url":"https://api.github.com/users/miss61008596/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T06:24:36Z","updated_at":"2016-06-25T06:24:36Z","body":"because server can not find window, you can use this\r\n\r\ngetInitialState() {\r\n        return {windowWidth: (typeof window !== 'undefined')? window.innerWidth:undefined};\r\n    },"}}
{"actor":{"display_login":"miss61008596"}}