From: Manolo Carrasco Date: Sat, 3 May 2014 07:29:06 +0000 (+0200) Subject: Deprecating methods with com.google.gwt.user.client.Element arguments X-Git-Tag: gwtquery-project-1.4.3~35^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=afe06b8f7bd45c024fab1f0bf076d05bb7b5d7fd;p=gwtquery.git Deprecating methods with com.google.gwt.user.client.Element arguments --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java index e90ad93e..b094ebf8 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java @@ -323,6 +323,7 @@ public abstract class Function { * @param e takes a com.google.gwt.user.client.Element. * */ + @Deprecated public void cancel(com.google.gwt.user.client.Element e) { setElement(e); } @@ -356,6 +357,7 @@ public abstract class Function { * @param e takes a com.google.gwt.user.client.Element. * */ + @Deprecated public Object f(com.google.gwt.user.client.Element e, int i) { setElement(e); setIndex(i); @@ -458,6 +460,7 @@ public abstract class Function { * @param elem takes a com.google.gwt.user.client.Element */ private boolean loop = false; + @Deprecated public void f(com.google.gwt.user.client.Element e) { setElement(e); Widget w = e != null ? GQuery.getAssociatedWidget(e) : null; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java index 5f3cf531..eaf446e7 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java @@ -13,6 +13,11 @@ */ package com.google.gwt.query.client.plugins.events; +import static com.google.gwt.query.client.GQuery.$; + +import java.util.ArrayList; +import java.util.List; + import com.google.gwt.core.client.Duration; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.EventTarget; @@ -28,11 +33,6 @@ import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.EventListener; -import java.util.ArrayList; -import java.util.List; - -import static com.google.gwt.query.client.GQuery.$; - /** * This class implements an event queue instance for one Element. The queue instance is configured * as the default event listener in GWT.