Logs for the RingoJS IRC channel, as logged by ringostarr.

2010-07-13

[02:14] <oravecz> does anyone know the syntax for referencing Java's static import functionality from a javascript file?

[02:21] <earl> hm, do you really need that?

[02:23] <earl> a destructuring assignment should achieve the same effect, i think

[02:23] <earl> var {PI} = java.lang.Math; // untested!

[02:23] <oravecz> i've written this but not tested it yet:

[02:23] <oravecz> var settingsBuilder = Packages.org.elasticsearch.util.settings.ImmutableSettings.settingsBuilder;

[02:24] <oravecz> It would be cool if this works also:

[02:24] <oravecz> var {settingsBuilder} = Packages.org.elasticsearch.util.settings.ImmutableSettings;

[02:24] <earl> that should just work (tm)

[02:25] <earl> well, at least my PI example does :)

[02:27] <oravecz> cool, luv the Rhino/Java niceness

[02:27] <oravecz> getting a little late there earl?

[02:28] <earl> that's in the eye of the beholder :)

[02:32] <oravecz> I've been a little out of the loop after adding portlet support to ringo. Was there a determination on which direction skinning will take?

[02:34] <earl> i don't think so