--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKbOjEx1_jOohikJ7nBAfpsE%3DJHtnD6M31PibMzjvcjLn7G1fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You can call it a missing feature. Clearly not a bug, not everything that can be done in JS is available from Java with interop. For these situations you probably want to have some JS stubs.
On Tue, Jun 27, 2017 at 1:09 AM, Vassilis Virvilis <vas...@gmail.com> wrote:
ThanksDoes this count as a bug or at least as a missing feature?Ok guys this is the last one - I promise.Originally posted in gwt-users.---------- Forwarded message ----------
From: Vassilis Virvilis <vas...@gmail.com>
Date: Mon, Mar 6, 2017 at 4:08 PM
Subject: jsinterop: @JsFunction .length always 0
To: google-web-toolkit@googlegroups.comHi,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/lengthTrying to pass a java @JsFunction fails because @JsFunction objects are lambda with zero arguments that wrap samMethod.apply() callAny ideas? Should I file this as a bug?--Vassilis Virvilis
--Vassilis Virvilis
--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKbOjEx1_jOohikJ7nBAfpsE%3DJHtnD6M31PibMzjvcjLn7G1fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAC7T7g%3D_JcBzZaNnjBosAmcQ_Bm8Bn9r-_7LfFi%3DDu5r%2BO1h1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKbOjEx1_jOohikJ7nBAfpsE%3DJHtnD6M31PibMzjvcjLn7G1fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/a07991bc-7767-46cb-80fd-655e1809f15b%40googlegroups.com.
I am not following the implementation details and I cannot judge on the compromises front.
But from a user standpoint this should be implemented because a @JsFunction should generate a js function() and a js function() happens to have a length member by specification (see https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Function/length )
Otherwise @JsFunction is not a js function() but something callable instead.
Given the dynamic number of javascript I expect that these kind of checks to be common enough to warrant the effort.
Do you want me to report it as issue? If so where?Is it possible for @JsFunction magic to implement it some day? or it is impossible to be implemented with the current design?Thanks again for all the answers so far.Vassilis
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAC7T7g%3D_JcBzZaNnjBosAmcQ_Bm8Bn9r-_7LfFi%3DDu5r%2BO1h1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
--Vassilis Virvilis
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAKbOjEzKqjBGngrz%3DNES1bEe24ejg48mHzBw3L9fLP3JC11_%2BA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/e12e8c02-c6f0-4818-aaee-fb564935e8ec%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAC7T7gnJC5tBdXqwr1B4wYTz4UNLppqxpbp4ydZUe7xx8qYCrg%40mail.gmail.com.