I have a GWT class with two JSNI JavaScript functions. I want to call one function inside another, like this:
public class MyClass
{
public native void Function1()
/*-{
console.log("Function 1");
}-*/;
public native void Function2()
/*-{
Function1();
}-*/;
}
In this case, when executing Function2 i'm getting "Function1 is not defined".
Keep in mind that I don't want to embeed Function1 inside Function2 code, I need two different JSNI functions (so I can call Function1 from multiple functions).
Thank you.