]> source.dussan.org Git - gwtquery.git/commitdiff
reduce permutations when using QueryMin.gwt.xml
authorManolo Carrasco <manolo@apache.org>
Tue, 17 Jul 2012 05:36:37 +0000 (05:36 +0000)
committerManolo Carrasco <manolo@apache.org>
Tue, 17 Jul 2012 05:36:37 +0000 (05:36 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/QueryMin.gwt.xml

index d5eba98d83b19f53c3d39401c6bb2b14a43050fc..9678a7eedb54dac07e8e40341a6c54990a15b2fb 100644 (file)
     <define-property name="selectorCapability" values="native,js"/>\r
     <property-provider name="selectorCapability">\r
         <![CDATA[\r
-         return document.location.href.indexOf("_force_no_native") < 0 &&\r
+         return !/_force_no_native/.test(document.location.search) &&\r
                 document.querySelectorAll && \r
                 /native/.test(String(document.querySelectorAll)) ? "native" : "js"; \r
         ]]>\r
     </property-provider>\r
+    \r
+    <set-property name="selectorCapability" value="js" >\r
+        <when-property-is name="user.agent" value="ie6" />\r
+    </set-property>\r
+    <set-property name="selectorCapability" value="native" >\r
+        <any>\r
+            <when-property-is name="user.agent" value="safari" />\r
+        </any>\r
+    </set-property>    \r
 \r
     <!-- Selector Engines -->\r
     <replace-with class="com.google.gwt.query.client.impl.SelectorEngineNativeMin">\r