I have read the relevant post in the Flambe guide but couldn't see any use of the clone() function. The APIs of the various event classes (like the PointerEvent class) contain this note:
NOTE: For performance reasons, PointerEvent instances are reused by Flambe. Use clone() to retain a reference to an event.
I have 3 questions:
SignalConnection
. Make this a private member and dispose it in the dispose
function, or register it to a Disposer
if you use it. This avoids memory leaks and unwanted behavior.