From 723156e45fc855d5d993e1ea58cdab1cf2aafd0b Mon Sep 17 00:00:00 2001 From: jdramaix Date: Wed, 23 Jan 2013 01:48:17 +0100 Subject: [PATCH] fix issue #12 --- .../src/main/java/com/google/gwt/query/client/js/JsMap.java | 6 ++++++ 1 file changed, 6 insertions(+) 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(); } -- 2.39.5