From fbb31f4108f614a4182b115eeb4c877c254c5f47 Mon Sep 17 00:00:00 2001 From: jdramaix Date: Wed, 11 Dec 2013 18:36:47 -0800 Subject: add off() --- .../java/com/google/gwt/query/client/GQuery.java | 22 ++++++++++++++-------- 1 file 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 { public GQuery off() { return as(Effects).off(); } + + /** + * Remove an event handler + */ + public GQuery off(String eventName) { + return unbind(eventName, null); + } /** * Remove an event handler -- cgit v1.2.3