Monday, March 6, 2017

jsinterop: @JsFunction .length always 0

Hi,

in D3 the bisect function takes a function that can be a comparator or an accessor.

D3 internall figures it out by counting provided function arguments length via f.length https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Function/length

Trying to pass a java @JsFunction fails because @JsFunction objects are lambda with zero arguments that wrap samMethod.apply() call

Any ideas? Should I file this as a bug?


--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment