I don't think there's a way to pass functions in jsfx. You could send a variable, and call a function in the inner loop which looks up and calls the function you actually want. But yeah, not pretty with lots of branching.
If possible, I would have expected a syntax without the ().
|