From: Manolo Carrasco Date: Fri, 30 Sep 2011 08:05:29 +0000 (+0000) Subject: bad condition X-Git-Tag: release-1.3.2~190 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c5e1e8506ca471deaa6fde1800b3ed852482dc73;p=gwtquery.git bad condition --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java index 85c85d0f..9f385dfb 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java @@ -225,7 +225,7 @@ public class SelectorEngineCssToXPath extends SelectorEngineImpl { SelectorEngine.xpathEvaluate(xsel, ctx, elm); return JsUtils.unique(elm.> cast()).cast(); } catch (Exception e) { - if (GWT.isScript()) { + if (!GWT.isScript()) { if (!SelectorEngine.hasXpathEvaluate()) { throw new RuntimeException("This Browser does not support Xpath selectors.", e); }