tags:

views:

18

answers:

1

hi,

The following code is not working because "default" seems to be a JavaScript keyword. Is there an easy way of fixing this? I want to avoid to change the name on the server side.

    public final native boolean getDefault() /*-{
    return this.default;
}-*/;

Thanks in advance

kukudas

+2  A: 

Use array access instead of variable access:

return this['default'];
Hilbrand
Perfect, thanks.
kukudas