I always have a question about override custom event. I am not sure why or what do to inside override function. I searched google but didn’t get too many feedbacks. I appreciate if someone can light me up. Thanks.
EDIT:
My projects seem work fine even though I use my custom event without override. Anyone could explain it? Thanks.
From the docs:
So, you can have a problem if you don’t override clone and redispatch an Event. Also, the problem is not only that the custom properties will not be copied. The clone method will be called on the base class,
Event. This will return anEventobject, not aCustomEvent. If you have a handler that expects aCustomEventand receives anEvent, an error will be thrown and the code in your handler will not run.