From 6190d87ce7b8c242c306a12a82afef923c255609 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Lariviere Date: Fri, 12 Dec 2014 14:03:01 -0500 Subject: [PATCH] Use right f() in predicate --- .../src/main/java/com/google/gwt/query/client/GQuery.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 aa82446d..2d5eb40b 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 @@ -3380,7 +3380,7 @@ public class GQuery implements Lazy { public GQuery parentsUntil(final String selector) { return parentsUntil(new Predicate(){ @Override - public boolean f(Element e, int index) { + public boolean f(T e, int index) { return selector != null && $(e).is(selector); } }); @@ -3393,7 +3393,7 @@ public class GQuery implements Lazy { public GQuery parentsUntil(final Node node) { return parentsUntil(new Predicate() { @Override - public boolean f(Element e, int index) { + public boolean f(T e, int index) { return node != null && e == node; } }); -- 2.39.5