]> source.dussan.org Git - gwtquery.git/commitdiff
FF performs better with Sizzle in Dynamic mode
authorManolo Carrasco <manolo@apache.org>
Sat, 24 Jul 2010 01:55:43 +0000 (01:55 +0000)
committerManolo Carrasco <manolo@apache.org>
Sat, 24 Jul 2010 01:55:43 +0000 (01:55 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/Query.gwt.xml
gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNative.java
gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorJS.java

index 88c60f0a266b0bf35884beb1d801498809a9c88f..7843c9751a7638fc55c8c71cfdebb9a681bb9f30 100644 (file)
@@ -7,13 +7,11 @@
                      values="native,js"/>\r
     <property-provider name="selectorCapability">\r
         <![CDATA[\r
-   // useful for benchmarking tests when you want to force non-accelerated queries\r
-   //if(window.location.href.indexOf("_selector_force_js") != -1) return "js"; \r
-   if(document.querySelectorAll && /native/.test(String(document.querySelectorAll))) {\r
-      return "native";\r
-   }\r
-   return "js"\r
-     ]]>\r
+         // useful for benchmarking tests when you want to force non-accelerated queries\r
+         if(window.location.href.indexOf("_selector_force_js") != -1) return "js"; \r
+         if(document.querySelectorAll && /native/.test(String(document.querySelectorAll))) return "native";\r
+         return "js";\r
+        ]]>\r
     </property-provider>\r
 \r
     <generate-with class="com.google.gwt.query.rebind.LazyGenerator">\r
index 477e42870146624df9dca3ce20530349e0daed63..0cc8a363c27c08bc5560f54d32bd3fbf9d384021 100644 (file)
@@ -24,7 +24,7 @@ import com.google.gwt.query.client.SelectorEngine;
  * Runtime selector engine implementation for browsers with native
  * querySelectorAll support.
  */
-public class SelectorEngineNative extends SelectorEngineCssToXPath {
+public class SelectorEngineNative extends SelectorEngineSizzle {
   
   public static String NATIVE_EXCEPTIONS_REGEXP = ".*(:contains|!=).*";
   
index 6a7b5f6467c729fab6d0869aff9881be30fa9501..21d5e70c34f5fce12a673020a20faae9789d3c42 100644 (file)
@@ -22,8 +22,7 @@ import com.google.gwt.query.client.Selector;
 import com.google.gwt.user.rebind.SourceWriter;\r
 \r
 /**\r
- * An implementaton of pure-JS compile time selectors. This implementation\r
- * simply defers to the runtime selector engine.\r
+ * An implementation which simply defers to the runtime selector engine.\r
  */\r
 public class SelectorGeneratorJS extends SelectorGeneratorBase {\r
 \r