Quellcode durchsuchen

Throw an exception when wrapped object is unknown.

tags/gwtquery-project-1.5-beta1
Manolo Carrasco vor 8 Jahren
Ursprung
Commit
0a8f1e1925

+ 1
- 2
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java Datei anzeigen

@@ -270,8 +270,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
// Otherwise we wrap it as an element
return new GQuery(jso.<Element> cast());
}
console
.log("Error: GQuery.$(Object o) could not wrap the type : ", o.getClass().getName(), o);
throw new RuntimeException("Error: GQuery.$(Object o) could not wrap the type : " + o.getClass().getName() + " " + o);
}
return $();
}

Laden…
Abbrechen
Speichern