From: jdramaix Date: Wed, 23 Jan 2013 00:48:17 +0000 (+0100) Subject: fix issue #12 X-Git-Tag: release-1.3.2~19^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=723156e45fc855d5d993e1ea58cdab1cf2aafd0b;p=gwtquery.git fix issue #12 --- 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 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(); }