diff options
author | Manolo Carrasco <manolo@apache.org> | 2011-07-15 10:25:12 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2011-07-15 10:25:12 +0000 |
commit | a6baaeac47f83c28a40a9adbb9da0f6ff0603824 (patch) | |
tree | 3e8426a862599e6e5011a35a10ac492b4f8a5c24 | |
parent | 4c5ffe27b78d7315761541aeb11e42a1ce1321a8 (diff) | |
download | gwtquery-a6baaeac47f83c28a40a9adbb9da0f6ff0603824.tar.gz gwtquery-a6baaeac47f83c28a40a9adbb9da0f6ff0603824.zip |
: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
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/impl/SelectorEngineNative.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |