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
This is much useful to the EventEmitter. to analyzed the event name on fly.
generally the event name is a string. If there are dozens of events. Is difficult to remember the names of these events.
So, my idea is to dynamically bind the event name to a variable. It would be very pleasant if we could dynamically analyze the event name bound by this variable.
varsignals={events: {},// to hold the event's namesemit: function(name){this.events[name]=name;// bind to the events property
...
}}
// event emittersignals.emit('my-event-name',param);// register events with auto completionssignals.on(signals.events.[couldshowalleventsbinded], ...
The text was updated successfully, but these errors were encountered:
This is much useful to the
EventEmitter
. to analyzed theevent name
on fly.generally the
event name
is astring
. If there are dozens of events. Is difficult to remember the names of these events.So, my idea is to dynamically bind the event name to a variable. It would be very pleasant if we could dynamically analyze the event name bound by this variable.
The text was updated successfully, but these errors were encountered: