]> source.dussan.org Git - gwtquery.git/commitdiff
f(Widget, int) delagate call to f(Element) instead of f(Widget).
authorJulien Dramaix <julien.dramaix@gmail.com>
Fri, 15 Apr 2011 08:51:13 +0000 (08:51 +0000)
committerJulien Dramaix <julien.dramaix@gmail.com>
Fri, 15 Apr 2011 08:51:13 +0000 (08:51 +0000)
f(Widget) will be called later in f(Element) if it is not overidde

gwtquery-core/src/main/java/com/google/gwt/query/client/Function.java

index 19e7221ff5674b2bf9c26624c4a2fd3173c26951..de5e8a094564b4de628f529df1d825ed41d7464d 100644 (file)
@@ -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;
   }