We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code:
var dispatcher = new EventDispatcher(); dispatcher.addEventListener(Event.CHANGE, methodListener); dispatcher.dispatchEvent(new Event(Event.CHANGE)); dispatcher.removeEventListener(Event.CHANGE, methodListener); dispatcher.dispatchEvent(new Event(Event.CHANGE));
The listener must be a method on a class (it seems to work correctly with a local function):
private function methodListener(event:Event):Void { trace(event.type); }
Expected output:
change
Actual output:
change change
The text was updated successfully, but these errors were encountered:
As far as i can tell this is a bug in HashLink. I have made an issue over at the HashLink repo. HaxeFoundation/hashlink#301
Sorry, something went wrong.
a8605d7
Confirmed fixed. Thanks!
No branches or pull requests
Code:
The listener must be a method on a class (it seems to work correctly with a local function):
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: