From b22f696ac16fccd0953d6a9f018d46ccd8084aa7 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Lariviere Date: Fri, 12 Dec 2014 12:09:07 -0500 Subject: Fix inverted condition --- gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gwtquery-core') 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 261991c2..54b84b5e 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 @@ -3405,7 +3405,7 @@ public class GQuery implements Lazy { int i = 0; Node par = e.getParentNode(); while (par != null && par != document) { - if (!predicate.f(par, i)) { + if (predicate.f(par, i)) { break; } result.addNode(par); -- cgit v1.2.3