Allow Symbols as event names

This would allow private custom events, to avoid name collision.

var myEvent = Symbol('custom-event');

el.addEventListener(myEvent, fn);

var event = new CustomEvent(myEvent, { bubbles: true });
el.dispatchEvent(event);

-- 
Bitovi
Development | Design | Training | Open Source

Received on Thursday, 14 January 2016 02:36:52 UTC