AbstractAbstracttypeBind an event listener. This method can be used with a type parameter by call sites; although it's not necessary it can be helpful to use this to ensure you've thought about what the payload to your event handler is going to be.
Gets all listeners for the given named event.
Returns whether not event firing is currently suspended
Sets whether not event firing is currently suspended
OptionaloriginalEvent: EventUnbind the given event listener, or all listeners. If you call this method with no arguments then all event listeners are unbound.
Abstractupdate
Base class for classes that wish to support binding and firing of events.
Remarks
You need to implement the
shouldFireEventmethod in your concrete subclasses of this class, or you can instead extend fromOptimisticEventGenerator, which has a default implementation ofshouldFireEventthat returns true.