Hey guys,
I am integrating with a library that has a function that looks like
this:
function splat(obj) {
if (!obj || obj.constructor !== Array) {
obj = [obj];
}
return obj;
}
I was sending JsArray instances to it and noticed that it was always
wrapping the object in a new array. I believe that this is because
GWT is running in a hidden iframe.
Therefore I created a jsni method:
public static native JsArray<JavaScriptObject> createArray()/*-{return
new $wnd.Array();}-*/;
This works on the PC. However on firefox and safari on the mac it
does not work. It still always wraps the object in a new array.
Does anyone have any suggestions?
Thank you very much for your help.
Matt Curry
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.