Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/js/JsObject.java +13 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package org.cesiumjs.cs.js; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArrayString; import jsinterop.annotations.JsPackage; import jsinterop.annotations.JsProperty; Loading Loading @@ -112,6 +113,10 @@ public class JsObject extends JavaScriptObject { return array[index]; }-*/; public static native boolean hasOwnProperty(Object object, String property) /*-{ return object.hasOwnProperty(property); }-*/; /** * In JavaScript null not he same undefined. In example Interpolation, we set * trackedEntity to null, and this method not worked To correct this help Loading Loading @@ -162,4 +167,12 @@ public class JsObject extends JavaScriptObject { public final native JsObject getJsObject(String name) /*-{ return this[name]; }-*/; public static native JsArrayString keys(JsObject object) /*-{ return Object.keys(object) }-*/; public final native boolean hasOwnProperty(String property) /*-{ return this.hasOwnProperty(property); }-*/; } Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/js/JsObject.java +13 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package org.cesiumjs.cs.js; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArrayString; import jsinterop.annotations.JsPackage; import jsinterop.annotations.JsProperty; Loading Loading @@ -112,6 +113,10 @@ public class JsObject extends JavaScriptObject { return array[index]; }-*/; public static native boolean hasOwnProperty(Object object, String property) /*-{ return object.hasOwnProperty(property); }-*/; /** * In JavaScript null not he same undefined. In example Interpolation, we set * trackedEntity to null, and this method not worked To correct this help Loading Loading @@ -162,4 +167,12 @@ public class JsObject extends JavaScriptObject { public final native JsObject getJsObject(String name) /*-{ return this[name]; }-*/; public static native JsArrayString keys(JsObject object) /*-{ return Object.keys(object) }-*/; public final native boolean hasOwnProperty(String property) /*-{ return this.hasOwnProperty(property); }-*/; }