{"action":"created","issue":{"url":"https://api.github.com/repos/milankinen/livereactload/issues/52","labels_url":"https://api.github.com/repos/milankinen/livereactload/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/milankinen/livereactload/issues/52/comments","events_url":"https://api.github.com/repos/milankinen/livereactload/issues/52/events","html_url":"https://github.com/milankinen/livereactload/issues/52","id":100660238,"number":52,"title":"[Question] Is there a way to deal with global events being duplicated?","user":{"login":"josh18","id":5900962,"avatar_url":"https://avatars.githubusercontent.com/u/5900962?v=3","gravatar_id":"","url":"https://api.github.com/users/josh18","html_url":"https://github.com/josh18","followers_url":"https://api.github.com/users/josh18/followers","following_url":"https://api.github.com/users/josh18/following{/other_user}","gists_url":"https://api.github.com/users/josh18/gists{/gist_id}","starred_url":"https://api.github.com/users/josh18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh18/subscriptions","organizations_url":"https://api.github.com/users/josh18/orgs","repos_url":"https://api.github.com/users/josh18/repos","events_url":"https://api.github.com/users/josh18/events{/privacy}","received_events_url":"https://api.github.com/users/josh18/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/milankinen/livereactload/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-12T23:50:02Z","updated_at":"2015-08-13T23:16:05Z","closed_at":null,"body":"For example if I do something like:\r\n```js\r\ndocument.addEventListener('click', function() {\r\n    console.log('click');\r\n});\r\n```\r\nI get an extra event running every time the javascript is reloaded."},"comment":{"url":"https://api.github.com/repos/milankinen/livereactload/issues/comments/130875225","html_url":"https://github.com/milankinen/livereactload/issues/52#issuecomment-130875225","issue_url":"https://api.github.com/repos/milankinen/livereactload/issues/52","id":130875225,"user":{"login":"josh18","id":5900962,"avatar_url":"https://avatars.githubusercontent.com/u/5900962?v=3","gravatar_id":"","url":"https://api.github.com/users/josh18","html_url":"https://github.com/josh18","followers_url":"https://api.github.com/users/josh18/followers","following_url":"https://api.github.com/users/josh18/following{/other_user}","gists_url":"https://api.github.com/users/josh18/gists{/gist_id}","starred_url":"https://api.github.com/users/josh18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh18/subscriptions","organizations_url":"https://api.github.com/users/josh18/orgs","repos_url":"https://api.github.com/users/josh18/repos","events_url":"https://api.github.com/users/josh18/events{/privacy}","received_events_url":"https://api.github.com/users/josh18/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T23:16:05Z","updated_at":"2015-08-13T23:16:05Z","body":"Originally I was adding it outside react but I thought this might be the issue so I also tried it inside a react component but it seems to have the same result. I was doing something like:\r\n```js\r\ncomponentWillMount: function() {\r\n    document.addEventListener('click', function() {\r\n        console.log('click');\r\n    });\r\n},\r\n```\r\n(I'm still learning react so I might be doing something wrong.)"}}