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
After using the library for a while I have found a few things that would be nice to have:
Observer.once()
Provides a one-time response to a message and then the handler is removed
Observer.on( event, self, fn )
extended to support callback functions instead of always calling the Observe() method. This is important when you are subscribing to dozens of events because it would remove a large select-case from the Observe() method and should be faster.
The self value would be used as an argument to the handler:
Observer.on( EVENT_SOMETHING, self, CallbackOnSomething )
Function CallbackOnSomething( event:int, data:object, instance:object )
EndFunction
Observer.off( self )
extended to remove all registered callbacks for self
The text was updated successfully, but these errors were encountered:
After using the library for a while I have found a few things that would be nice to have:
Observer.once()
Observer.on( event, self, fn )
Observer.on( EVENT_SOMETHING, self, CallbackOnSomething )
Function CallbackOnSomething( event:int, data:object, instance:object )
EndFunction
Observer.off( self )
The text was updated successfully, but these errors were encountered: