Skip to content

Commit

Permalink
add off()
Browse files Browse the repository at this point in the history
  • Loading branch information
jDramaix committed Dec 12, 2013
1 parent 31f2945 commit fbb31f4
Showing 1 changed file with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -70,6 +62,13 @@
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.
*/
Expand Down Expand Up @@ -3235,6 +3234,13 @@ public GQuery on(String eventName, String selector, Object data, Function... fun
public GQuery off() {
return as(Effects).off();
}

/**
* Remove an event handler
*/
public GQuery off(String eventName) {
return unbind(eventName, null);
}

/**
* Remove an event handler
Expand Down

0 comments on commit fbb31f4

Please sign in to comment.