Closed mathk closed 5 years ago
Thanks for the pull request!
I prefer to not implement VariadicJSParam
, but to use an alternative design instead. Namely, every function object in Java has a member apply
which can be used to pass multiple arguments as an array, along the lines of
ffi "aVariadicFunction.apply(null,%1)" arguments
where arguments :: [Int]
is a list of values. For this to work, we need to make lists [a]
an instance of the ToJS
class.
pageX
not being absolute or relative, but I'll have to look up exactly what the semantics were. I think that mousemove
implements it incorrectly, even.
Here is two change in this pull request.
Variadic js function, To enable variadic js function a new datatype must be used in the ffi call. Typical example:
Thanks