Don't know why this took me so long to figure out. I just remove the
var and it works, I think, like:
public static native void sirLancelot() /*-{
$wnd.isWitch = function (x){
return equalWeight(x, duck)
};
}-*/;
On Jul 16, 11:50 am, Jason Carver <[email protected]> wrote:
> I get a compile error when I try to create a Javascript function in the
> global namespace:
>
> public static native void sirLancelot() /*-{
> var $wnd.isWitch = function (x){
> return equalWeight(x, duck)
> };
>
> }-*/;
>
> It says I'm "missing ; before statement" but I'm pretty sure that's valid
> syntax. Is there some other way I'm supposed to declare javascript
> functions callable by other javascript?
>
> ~Carverhttp://slique.com- builds group memory by putting all your group's
> email,
> files and documents in one place
> I'm not being curt, I'm just usinghttp://five.sentenc.es/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---