diff options
3 files changed, 7 insertions, 10 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/Query.gwt.xml b/gwtquery-core/src/main/java/com/google/gwt/query/Query.gwt.xml index 88c60f0a..7843c975 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/Query.gwt.xml +++ b/gwtquery-core/src/main/java/com/google/gwt/query/Query.gwt.xml @@ -7,13 +7,11 @@ values="native,js"/>
<property-provider name="selectorCapability">
<![CDATA[
- // useful for benchmarking tests when you want to force non-accelerated queries
- //if(window.location.href.indexOf("_selector_force_js") != -1) return "js";
- if(document.querySelectorAll && /native/.test(String(document.querySelectorAll))) {
- return "native";
- }
- return "js"
- ]]>
+ // useful for benchmarking tests when you want to force non-accelerated queries
+ if(window.location.href.indexOf("_selector_force_js") != -1) return "js";
+ if(document.querySelectorAll && /native/.test(String(document.querySelectorAll))) return "native";
+ return "js";
+ ]]>
</property-provider>
<generate-with class="com.google.gwt.query.rebind.LazyGenerator">
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNative.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNative.java index 477e4287..0cc8a363 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNative.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNative.java @@ -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|!=).*"; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorJS.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorJS.java index 6a7b5f64..21d5e70c 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorJS.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/SelectorGeneratorJS.java @@ -22,8 +22,7 @@ import com.google.gwt.query.client.Selector; import com.google.gwt.user.rebind.SourceWriter;
/**
- * An implementaton of pure-JS compile time selectors. This implementation
- * simply defers to the runtime selector engine.
+ * An implementation which simply defers to the runtime selector engine.
*/
public class SelectorGeneratorJS extends SelectorGeneratorBase {
|