diff options
Diffstat (limited to 'gwtquery-core')
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java index 4a2597a9..cc8d6b3f 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Properties.java @@ -156,6 +156,13 @@ public class Properties extends JavaScriptObject { c().putBoolean(name, val); } + /** + * Adds a new native js function to the properties object. + * This native function will wrap the passed java Function. + * + * Its useful for exporting or importing to javascript. + * + */ public final native <T> void setFunction(T name, Function f) /*-{ this[name] = function() { f.@com.google.gwt.query.client.Function::fe(Ljava/lang/Object;)(arguments); |