Closed agubler closed 7 years ago
Enhancement
Add support to use a Symbol as an event type.
Symbol
Package Version: beta1
beta1
Code
const myEventType = Symbol(); const evented = new Evented({}); evented.on(myEventType, () => {});
const myEventType = Symbol(); const evented = new Evented({}); evented.emit({ type: myEventType });
Expected behavior:
No errors
Actual behavior:
Errors as Symbols are not supported.
Enhancement
Add support to use a
Symbol
as an event type.Package Version:
beta1
Code
Expected behavior:
No errors
Actual behavior:
Errors as Symbols are not supported.