Commit 9b5bb259 authored by iSergio's avatar iSergio
Browse files

Add some new functional

parent 5f960f70
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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;

@@ -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
@@ -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);
    }-*/;
}