{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/7747","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/7747/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/7747/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/7747/events","html_url":"https://github.com/mrdoob/three.js/pull/7747","id":120716594,"number":7747,"title":"Add missing self variable if not defined and when running under node environment","user":{"login":"simonThiele","id":10807661,"avatar_url":"https://avatars.githubusercontent.com/u/10807661?v=3","gravatar_id":"","url":"https://api.github.com/users/simonThiele","html_url":"https://github.com/simonThiele","followers_url":"https://api.github.com/users/simonThiele/followers","following_url":"https://api.github.com/users/simonThiele/following{/other_user}","gists_url":"https://api.github.com/users/simonThiele/gists{/gist_id}","starred_url":"https://api.github.com/users/simonThiele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonThiele/subscriptions","organizations_url":"https://api.github.com/users/simonThiele/orgs","repos_url":"https://api.github.com/users/simonThiele/repos","events_url":"https://api.github.com/users/simonThiele/events{/privacy}","received_events_url":"https://api.github.com/users/simonThiele/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-07T07:34:29Z","updated_at":"2015-12-07T13:30:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mrdoob/three.js/pulls/7747","html_url":"https://github.com/mrdoob/three.js/pull/7747","diff_url":"https://github.com/mrdoob/three.js/pull/7747.diff","patch_url":"https://github.com/mrdoob/three.js/pull/7747.patch"},"body":"Hi,\r\n\r\nI'm writing an application with node which runs on console (so not in the browser) and therefore self is not defined when importing three as a module. We currently using npm from @bhouston which contains a self fix but shouldn't work for BufferGeometryLoader. To make sure three runs under a node environment, I set self to global and hoist it so it's globally available. This fix works for me in the browser and in the node environment. Any concerns ?"},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/162525287","html_url":"https://github.com/mrdoob/three.js/pull/7747#issuecomment-162525287","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/7747","id":162525287,"user":{"login":"bhouston","id":588541,"avatar_url":"https://avatars.githubusercontent.com/u/588541?v=3","gravatar_id":"","url":"https://api.github.com/users/bhouston","html_url":"https://github.com/bhouston","followers_url":"https://api.github.com/users/bhouston/followers","following_url":"https://api.github.com/users/bhouston/following{/other_user}","gists_url":"https://api.github.com/users/bhouston/gists{/gist_id}","starred_url":"https://api.github.com/users/bhouston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhouston/subscriptions","organizations_url":"https://api.github.com/users/bhouston/orgs","repos_url":"https://api.github.com/users/bhouston/repos","events_url":"https://api.github.com/users/bhouston/events{/privacy}","received_events_url":"https://api.github.com/users/bhouston/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T13:30:52Z","updated_at":"2015-12-07T13:30:52Z","body":"You have some whitespace changes in this file still.  Otherwise I believe it to be acceptable.\r\n\r\nBTW some discussions about self, global and window here: http://stackoverflow.com/questions/9642491/getting-a-reference-to-the-global-object-in-an-unknown-environment-in-strict-mod"}}