{"action":"created","issue":{"url":"https://api.github.com/repos/inexorabletash/polyfill/issues/64","labels_url":"https://api.github.com/repos/inexorabletash/polyfill/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/inexorabletash/polyfill/issues/64/comments","events_url":"https://api.github.com/repos/inexorabletash/polyfill/issues/64/events","html_url":"https://github.com/inexorabletash/polyfill/issues/64","id":64934887,"number":64,"title":"Please add Event and CustomEvent","user":{"login":"thednp","id":6761246,"avatar_url":"https://avatars.githubusercontent.com/u/6761246?v=3","gravatar_id":"","url":"https://api.github.com/users/thednp","html_url":"https://github.com/thednp","followers_url":"https://api.github.com/users/thednp/followers","following_url":"https://api.github.com/users/thednp/following{/other_user}","gists_url":"https://api.github.com/users/thednp/gists{/gist_id}","starred_url":"https://api.github.com/users/thednp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thednp/subscriptions","organizations_url":"https://api.github.com/users/thednp/orgs","repos_url":"https://api.github.com/users/thednp/repos","events_url":"https://api.github.com/users/thednp/events{/privacy}","received_events_url":"https://api.github.com/users/thednp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-28T11:53:58Z","updated_at":"2015-04-03T22:36:47Z","closed_at":null,"body":"I tried to do this myself but I get an error.\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/inexorabletash/polyfill/issues/comments/89439216","html_url":"https://github.com/inexorabletash/polyfill/issues/64#issuecomment-89439216","issue_url":"https://api.github.com/repos/inexorabletash/polyfill/issues/64","id":89439216,"user":{"login":"inexorabletash","id":771547,"avatar_url":"https://avatars.githubusercontent.com/u/771547?v=3","gravatar_id":"","url":"https://api.github.com/users/inexorabletash","html_url":"https://github.com/inexorabletash","followers_url":"https://api.github.com/users/inexorabletash/followers","following_url":"https://api.github.com/users/inexorabletash/following{/other_user}","gists_url":"https://api.github.com/users/inexorabletash/gists{/gist_id}","starred_url":"https://api.github.com/users/inexorabletash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inexorabletash/subscriptions","organizations_url":"https://api.github.com/users/inexorabletash/orgs","repos_url":"https://api.github.com/users/inexorabletash/repos","events_url":"https://api.github.com/users/inexorabletash/events{/privacy}","received_events_url":"https://api.github.com/users/inexorabletash/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T22:36:47Z","updated_at":"2015-04-03T22:36:47Z","body":"If you want to implement, add tests, and send a pull request I can take a look. It's not something I've needed for my projects so I haven't spent any time on it, nor am I likely to any time soon.\r\n\r\nIt looks like there are some CustomEvent polyfills kicking around on the web, e.g.:\r\n\r\nhttp://stackoverflow.com/questions/14358599/object-doesnt-support-this-action-ie9-with-customevent-initialization\r\n\r\nThe way that my (and most) polyfills are written they should be reasonably independent of each other, so you can probably just have a standalone definition for CustomEvent, e.g.:\r\n\r\n```js\r\n(function(global) {\r\n  function CustomEvent(...) { /* polyfill code here */ };\r\n  if (!('CustomEvent' in global))\r\n    global.CustomEvent = CustomEvent;\r\n}(self));\r\n```"}}