{"action":"opened","issue":{"url":"https://api.github.com/repos/paulcpederson/focusin/issues/4","labels_url":"https://api.github.com/repos/paulcpederson/focusin/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/paulcpederson/focusin/issues/4/comments","events_url":"https://api.github.com/repos/paulcpederson/focusin/issues/4/events","html_url":"https://github.com/paulcpederson/focusin/issues/4","id":115965253,"number":4,"title":"Don't polyfill when focusin is supported ","user":{"login":"thejameskyle","id":952783,"avatar_url":"https://avatars.githubusercontent.com/u/952783?v=3","gravatar_id":"","url":"https://api.github.com/users/thejameskyle","html_url":"https://github.com/thejameskyle","followers_url":"https://api.github.com/users/thejameskyle/followers","following_url":"https://api.github.com/users/thejameskyle/following{/other_user}","gists_url":"https://api.github.com/users/thejameskyle/gists{/gist_id}","starred_url":"https://api.github.com/users/thejameskyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejameskyle/subscriptions","organizations_url":"https://api.github.com/users/thejameskyle/orgs","repos_url":"https://api.github.com/users/thejameskyle/repos","events_url":"https://api.github.com/users/thejameskyle/events{/privacy}","received_events_url":"https://api.github.com/users/thejameskyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-09T21:04:31Z","updated_at":"2015-11-09T21:04:31Z","closed_at":null,"body":"This is not enough to detect browser support:\r\n\r\n```js\r\nwindow.onfocusin === undefined\r\n```\r\n\r\nSafari and Chrome both support `focusin` but `window.onfocusin` will be `undefined`.\r\n\r\nThere's also an issue of this polyfill running more than once even after doing it's job. This is an issue if you have multiple copies for some reason or if you call `polyfill()` more than once."}}