You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2021. It is now read-only.
As a defensive programmer 😃 I would welcome a switch to allow to use defined events only. Something like:
varemitter=newEventEmitter();emitter.defineEvents(["my-event-1","my-event-2"]);emitter.setValidating(true);// switch on validationsemitter.addListener("my-event-1",()=>{...});// OKemitter.addListener("bad-event",()=>{...});// Erroremitter.emit("my-event-1");// OKemitter.emit("bad-event");// Error// etc. other methods like removeEvent
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As a defensive programmer 😃 I would welcome a switch to allow to use defined events only. Something like:
The text was updated successfully, but these errors were encountered: