Hello,
Not quite the place to commend you on a fantastic framework, but: what a fantastic framework! Thank you.
Okay, the issue I have is with Haxe 3 targetting a JavaScript target, and manifests itself as follows:
I'm having problems mapping a Signal2 to a Command, which I think might be a bug.
The Signal2 is declared as follows:
public static var showImageViewer = new Signal2(Bool, Int);
This is mapped to a command in the context as follows:
commandMap.mapSignal(CommandSignals.showImageViewer,
ShowImageViewerCommand);
The command declares two field for the incoming signal parameters as follows:
@inject public var currentImageIndex:Int;
@inject public var show:Bool;
However, at runtime, triggering the signal as follows:
CommandSignals.showImageViewer.dispatch(true, imageIndex);
...causes JavaScript to be created that results in the following browser error:
Uncaught TypeError: Cannot call method 'join' of undefined
The error appears to be occurring in JavaScript which looks as follows:
Type.getClassName = function(c) {
var a = c.name;
return a.join(".");
}
I think the mapping mechanism might be having problems with this combination of types for the signal parameters. It's solved if I replace this combo with a wrapper type. All the other signal mappings I've created work - they are Signal0s and Signal1s though.
Any ideas?
Many thanks,
Nick