{"action":"created","issue":{"url":"https://api.github.com/repos/WICG/EventListenerOptions/issues/44","repository_url":"https://api.github.com/repos/WICG/EventListenerOptions","labels_url":"https://api.github.com/repos/WICG/EventListenerOptions/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/WICG/EventListenerOptions/issues/44/comments","events_url":"https://api.github.com/repos/WICG/EventListenerOptions/issues/44/events","html_url":"https://github.com/WICG/EventListenerOptions/issues/44","id":154793140,"number":44,"title":"Could/should the polyfill simply rewrite/extend addEventListener?","user":{"login":"patrickhlauke","id":895831,"avatar_url":"https://avatars.githubusercontent.com/u/895831?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickhlauke","html_url":"https://github.com/patrickhlauke","followers_url":"https://api.github.com/users/patrickhlauke/followers","following_url":"https://api.github.com/users/patrickhlauke/following{/other_user}","gists_url":"https://api.github.com/users/patrickhlauke/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickhlauke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickhlauke/subscriptions","organizations_url":"https://api.github.com/users/patrickhlauke/orgs","repos_url":"https://api.github.com/users/patrickhlauke/repos","events_url":"https://api.github.com/users/patrickhlauke/events{/privacy}","received_events_url":"https://api.github.com/users/patrickhlauke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-13T20:24:00Z","updated_at":"2016-05-17T14:02:40Z","closed_at":null,"body":"Not sure if this is elegant or kosher, but...instead of defining a new `addEventListenerWithOptions` function, could/should the polyfill simply rewrite/extend/prollyfill `addEventListener`?"},"comment":{"url":"https://api.github.com/repos/WICG/EventListenerOptions/issues/comments/219726990","html_url":"https://github.com/WICG/EventListenerOptions/issues/44#issuecomment-219726990","issue_url":"https://api.github.com/repos/WICG/EventListenerOptions/issues/44","id":219726990,"user":{"login":"RByers","id":1280419,"avatar_url":"https://avatars.githubusercontent.com/u/1280419?v=3","gravatar_id":"","url":"https://api.github.com/users/RByers","html_url":"https://github.com/RByers","followers_url":"https://api.github.com/users/RByers/followers","following_url":"https://api.github.com/users/RByers/following{/other_user}","gists_url":"https://api.github.com/users/RByers/gists{/gist_id}","starred_url":"https://api.github.com/users/RByers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RByers/subscriptions","organizations_url":"https://api.github.com/users/RByers/orgs","repos_url":"https://api.github.com/users/RByers/repos","events_url":"https://api.github.com/users/RByers/events{/privacy}","received_events_url":"https://api.github.com/users/RByers/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T14:02:40Z","updated_at":"2016-05-17T14:02:40Z","body":"You mean the feature-detect logic in the explainer?  Yeah I wasn't attempting to show a full polyfill here.  It would be misleading to suggest that this code is a \"polyfill\" - it doesn't, for example, change the behavior of `preventDefault`.\r\n\r\nIn contrast, the [polyfill we have checked into this repo](https://github.com/WICG/EventListenerOptions/blob/gh-pages/EventListenerOptions.polyfill.js) DOES extend `addEventListener`."}}