]> source.dussan.org Git - gwtquery.git/commitdiff
bad condition
authorManolo Carrasco <manolo@apache.org>
Fri, 30 Sep 2011 08:05:29 +0000 (08:05 +0000)
committerManolo Carrasco <manolo@apache.org>
Fri, 30 Sep 2011 08:05:29 +0000 (08:05 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineCssToXPath.java

index 85c85d0f94cebac8cd309da888ef77beb6425014..9f385dfb07e1dd7b768ed1904bbf5afc87cd06ca 100644 (file)
@@ -225,7 +225,7 @@ public class SelectorEngineCssToXPath extends SelectorEngineImpl {
       SelectorEngine.xpathEvaluate(xsel, ctx, elm);\r
       return JsUtils.unique(elm.<JsArray<Element>> cast()).cast();    \r
     } catch (Exception e) {\r
-      if (GWT.isScript()) {\r
+      if (!GWT.isScript()) {\r
         if (!SelectorEngine.hasXpathEvaluate()) {\r
           throw new RuntimeException("This Browser does not support Xpath selectors.", e);\r
         }\r