aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2013-12-11 18:37:31 -0800
committerManolo Carrasco <manolo@apache.org>2013-12-11 18:37:31 -0800
commit5275d5c3d115222f42bc41152d37d8ddd3455275 (patch)
tree8d3a734f5056c3ef606da98ec0563a278f201389
parent08f2eeacae9ac38f65a1e45694e168a7e0f0dee4 (diff)
parentfbb31f4108f614a4182b115eeb4c877c254c5f47 (diff)
downloadgwtquery-gquery_1_4_release.tar.gz
gwtquery-gquery_1_4_release.zip
Merge branch 'master' of github.com:gwtquery/gwtquery into gquery_1_4_releaserelease-1.4.0gquery_1_4_release
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java22
1 files changed, 14 insertions, 8 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
index 044a2500..d2a89d6f 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
@@ -13,20 +13,12 @@
*/
package com.google.gwt.query.client;
-import static com.google.gwt.query.client.plugins.QueuePlugin.Queue;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Map;
-
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JsArrayMixed;
import com.google.gwt.core.client.JsArrayString;
import com.google.gwt.core.client.ScriptInjector;
-import com.google.gwt.dev.Link;
import com.google.gwt.dom.client.BodyElement;
import com.google.gwt.dom.client.ButtonElement;
import com.google.gwt.dom.client.Document;
@@ -70,6 +62,13 @@ import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+
+import static com.google.gwt.query.client.plugins.QueuePlugin.Queue;
+
/**
* GwtQuery is a GWT clone of the popular jQuery library.
*/
@@ -3235,6 +3234,13 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
public GQuery off() {
return as(Effects).off();
}
+
+ /**
+ * Remove an event handler
+ */
+ public GQuery off(String eventName) {
+ return unbind(eventName, null);
+ }
/**
* Remove an event handler