]> source.dussan.org Git - gwtquery.git/commitdiff
fix issue #12
authorjdramaix <julien.dramaix@gmail.com>
Wed, 23 Jan 2013 00:48:17 +0000 (01:48 +0100)
committerjdramaix <julien.dramaix@gmail.com>
Wed, 23 Jan 2013 00:48:17 +0000 (01:48 +0100)
gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsMap.java

index b0c1ebb157c4543166f95b19b77a1247b9d56354..2c87171de5dfaab32d20af43b9c4708677788a96 100644 (file)
@@ -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();
   }