How do you get callbacks running in haxe 3 that are passed by another class?
I'm trying to pass a callback function to a class, but I'm getting an error
public static var onFocusCallback:Dynamic;
public static function triggerFocus():Void
{
onFocusCallback.bind();
}
the error I get is
[Fault] exception, information=ReferenceError: Error #1069: Property bind not found on builtin.as$0.MethodClosure and there is no default value.