{"action":"opened","issue":{"url":"https://api.github.com/repos/Pomax/react-onclickoutside/issues/51","labels_url":"https://api.github.com/repos/Pomax/react-onclickoutside/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/Pomax/react-onclickoutside/issues/51/comments","events_url":"https://api.github.com/repos/Pomax/react-onclickoutside/issues/51/events","html_url":"https://github.com/Pomax/react-onclickoutside/issues/51","id":117486303,"number":51,"title":"global is not defined.","user":{"login":"jonchay","id":1836588,"avatar_url":"https://avatars.githubusercontent.com/u/1836588?v=3","gravatar_id":"","url":"https://api.github.com/users/jonchay","html_url":"https://github.com/jonchay","followers_url":"https://api.github.com/users/jonchay/followers","following_url":"https://api.github.com/users/jonchay/following{/other_user}","gists_url":"https://api.github.com/users/jonchay/gists{/gist_id}","starred_url":"https://api.github.com/users/jonchay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonchay/subscriptions","organizations_url":"https://api.github.com/users/jonchay/orgs","repos_url":"https://api.github.com/users/jonchay/repos","events_url":"https://api.github.com/users/jonchay/events{/privacy}","received_events_url":"https://api.github.com/users/jonchay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T00:50:01Z","updated_at":"2015-11-18T00:50:01Z","closed_at":null,"body":"I'm installing this mixin through the browser method where `root` is the window. But in the function itself I receive an error on the console that states `global is not defined.`. \r\n\r\nI added `global = this;` in the function and it fixes it. Is this the right approach?"}}