Re: JSNI madness!

2012-05-20 Thread Wendel
public static native void methodA() /*-{ var that = this; something.bind("hi", function () { th...@my.pack.age.FooBar.methodB(); }); }-*/; -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this di

Re: JSNI madness!

2012-05-16 Thread Joseph Lust
methidB() should be methodB() Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DsEzrdRnO4IJ. To post to this group, send emai

Re: JSNI madness!

2012-05-15 Thread Roger Studner
For some reason I was thinking/hoping that a "JSNI to JSNI call" wouldn't use the evil syntax. Thanks Thomas! Roger On May 15, 2012, at 11:16 AM, Thomas Broyer wrote: > > > On Tuesday, May 15, 2012 4:39:48 PM UTC+2, Roger wrote: > Okay, losing my mind on something trivial.. if I have > >

Re: JSNI madness!

2012-05-15 Thread Thomas Broyer
On Tuesday, May 15, 2012 4:39:48 PM UTC+2, Roger wrote: > > Okay, losing my mind on something trivial.. if I have > > public class FooBar { > > public static native void methodA() /*-{ > FooBar.methodB(); > @my.pack.age.FooBar::methodB()(); See https://developers.google.c

Re: JSNI madness!

2012-05-15 Thread Roger Studner
Okay, not quite a complete enough example: public class FooBar { public static native void methodA() /*-{ something.bind("hi", function () { FooBar.methodB(); }); /*-}; public static native void methidB() /*-{ $wnd.alert("hi!"); /*-}; that is more accurate (the fa

JSNI madness!

2012-05-15 Thread Roger Studner
Okay, losing my mind on something trivial.. if I have public class FooBar { public static native void methodA() /*-{ FooBar.methodB(); /*-}; public static native void methidB() /*-{ $wnd.alert("hi!"); /*-}; } this should work? I feel like i've done it 1000