Fix retrieving value from NativeString in plugin

Trying to get the value by 'this.get()' fails with 'get is not a
function'.

Change-Id: I9468383bb4b63bc0ede4cdb33a1695db2e6f68e9
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2014-02-11 17:40:26 +01:00
parent 453b5c1e6a
commit af38543d1e

View File

@@ -25,7 +25,7 @@ public class NativeString extends JavaScriptObject {
/*-{ return $wnd.Gerrit.JsonString }-*/;
public final native String asString()
/*-{ return this.get(); }-*/;
/*-{ return this; }-*/;
public static final
AsyncCallback<NativeString> unwrap(final AsyncCallback<String> cb) {