I have the following native method in a extended JavaScriptObject class:
public final native boolean getDelete() /*-{ return this.delete; }-*/;
but this apparently doesn't work as "delete" is an javascript operator.
How can I read this property correctly.
The thrown exception is:
com.google.gwt.dev.js.JsParserException: missing name after . operator
Try it by accessing it as string:
public final native boolean getDelete() /*-{ return this['delete']; }-*/;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With