diff options
author | jdramaix <julien.dramaix@gmail.com> | 2013-01-23 01:48:17 +0100 |
---|---|---|
committer | jdramaix <julien.dramaix@gmail.com> | 2013-01-23 01:48:17 +0100 |
commit | 723156e45fc855d5d993e1ea58cdab1cf2aafd0b (patch) | |
tree | cda26198a7623bf79106b197b0303b8dee794859 | |
parent | 12ef96c7e5ea0ae3a599a17ebea77ebfc8c2c8c3 (diff) | |
download | gwtquery-723156e45fc855d5d993e1ea58cdab1cf2aafd0b.tar.gz gwtquery-723156e45fc855d5d993e1ea58cdab1cf2aafd0b.zip |
fix issue #12
-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(); } |