> Date: Thu, 9 Jul 2015 14:42:07 +0200 > From: phil...@opera.com > > I think this looks like a very promising approach. Would there be any > way to feature detect support for EventListenerOptions as the third > argument? It seems like a problem that addEventListener(type, > callback, { mayCancel: false }) would be treated as > addEventListener(type, callback, true) in existing browsers.
http://rbyers.github.io/EventListenerOptions/EventListenerOptions.html#extensions-to-the-event-interface and http://rbyers.github.io/EventListenerOptions/EventListenerOptions.html#examples example 2 are intended to cover this. -- James Ross <ja...@james-ross.co.uk>