From 8bcd3addd5b6b61b421cc03d3aef10e52520135a Mon Sep 17 00:00:00 2001 From: Julien Dramaix Date: Fri, 15 Apr 2011 08:51:13 +0000 Subject: [PATCH] f(Widget, int) delagate call to f(Element) instead of f(Widget). f(Widget) will be called later in f(Element) if it is not overidde --- .../src/main/java/com/google/gwt/query/client/Function.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 19e7221f..de5e8a09 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 @@ -90,7 +90,7 @@ public abstract class Function { * avoid a runtime exception. */ public Object f(Widget w, int i) { - f(w); + f(w.getElement());//f(w) will be called later in f(Element) return null; } -- 2.39.5