JSNI Question

26 views
Skip to first unread message

EMan

unread,
Dec 19, 2012, 7:10:00 PM12/19/12
to google-we...@googlegroups.com
How do I call a JSNI method from another JSNI Method?  for example, how can I get something1 to call something2?

public static native void something1() /*-{
    something2();
}-*/;

public static native void something2() /*-{
$wind.alert("something2");
}-*/;

Thanks.

Thomas Broyer

unread,
Dec 20, 2012, 4:59:33 AM12/20/12
to google-we...@googlegroups.com
Like any other Java method:

public static native void something1() /*-{
   @my.app.client.MyClass::something2()();
}-*/;
Reply all
Reply to author
Forward
0 new messages