From a6baaeac47f83c28a40a9adbb9da0f6ff0603824 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Fri, 15 Jul 2011 10:25:12 +0000 Subject: :first and :last commit introduced a regression in benchmarking, this fixes it since first-child and last-child are executed in the native engine which is pretty faster --- .../java/com/google/gwt/query/client/impl/SelectorEngineNative.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e021a14a..dddcdc37 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 @@ -26,7 +26,7 @@ import com.google.gwt.dom.client.NodeList; */ public class SelectorEngineNative extends SelectorEngineImpl { - public static String NATIVE_EXCEPTIONS_REGEXP = ".*(\\.//|:contains|!=|:first|:last|:even|:odd).*"; + public static String NATIVE_EXCEPTIONS_REGEXP = ".*(\\.//|:contains|!=|:first([^-]|$)|:last([^-]|$)|:even|:odd).*"; private static HasSelector impl; -- cgit v1.2.3