diff options
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java index b0c1ebb1..2c87171d 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java @@ -43,6 +43,12 @@ final public class JsMap<S, T> extends JavaScriptObject { c().put(key.hashCode(), val); } + public T remove(S key){ + T old = get(key); + c().delete(key.hashCode()); + return old; + } + public final String[] keys() { return c().keys(); } |