java/src/main/java/com/vaadin/elements/common/js/JS.java
public static native <T> T promoteTo(Object o, Class<?> clz)
    /*-{
        var p = @java.lang.Class::getPrototypeForClass(*)(clz);
        if (o.__proto__ && o.__proto__ !== p) {
            o.__proto__ = p;
            o.__reassignPending = true;
        }
        return o;
    }-*/;
/**
     * Promote a plain JSO to a GWT java class.
     */
Promote a plain JSO to a GWT java class.
Promote a plain JSO to a GWT java class .
public static native <T> T promoteTo(Object o, Class<?> clz)
    /*-{
        var p = @java.lang.Class::getPrototypeForClass(*)(clz);
        if (o.__proto__ && o.__proto__ !== p) {
            o.__proto__ = p;
            o.__reassignPending = true;
        }
        return o;
    }-*/;
public static native < T > T promoteTo ( Object o , Class < ? > clz ) /*-{
        var p = @java.lang.Class::getPrototypeForClass(*)(clz);
        if (o.__proto__ && o.__proto__ !== p) {
            o.__proto__ = p;
            o.__reassignPending = true;
        }
        return o;
    }-*/ ;
Promote a plain JSO to a GWT java class.
Promote a plain JSO to a GWT java class .