Browse Source

Throw an exception when wrapped object is unknown.

tags/gwtquery-project-1.5-beta1
Manolo Carrasco 8 years ago
parent
commit
0a8f1e1925

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

@@ -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 $();
}

Loading…
Cancel
Save