You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

QueryMin.gwt.xml 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <module>
  2. <!--
  3. Include com.google.gwt.query.QueryMin instead of com.google.gwt.query.Query
  4. if you want small javascript code and you are not using any of the selectors:
  5. ".*(:contains|!=|:checked|:not|:nth-|:last-|:only-).*"
  6. Note: that this will increase the number of total permutations.
  7. -->
  8. <inherits name='com.google.gwt.query.Query'/>
  9. <define-property name="selectorCapability" values="native,js"/>
  10. <property-provider name="selectorCapability">
  11. <![CDATA[
  12. return document.location.href.indexOf("_force_no_native") < 0 &&
  13. document.querySelectorAll &&
  14. /native/.test(String(document.querySelectorAll)) ? "native" : "js";
  15. ]]>
  16. </property-provider>
  17. <!-- Selector Engines -->
  18. <replace-with class="com.google.gwt.query.client.impl.SelectorEngineNativeMin">
  19. <when-type-assignable class="com.google.gwt.query.client.impl.SelectorEngineImpl"/>
  20. <any>
  21. <when-property-is name="user.agent" value="gecko1_8"/>
  22. <when-property-is name="user.agent" value="opera"/>
  23. <when-property-is name="user.agent" value="safari"/>
  24. </any>
  25. <when-property-is name="selectorCapability" value="native"/>
  26. </replace-with>
  27. <replace-with class="com.google.gwt.query.client.impl.SelectorEngineCssToXPath">
  28. <when-type-assignable class="com.google.gwt.query.client.impl.SelectorEngineImpl"/>
  29. <any>
  30. <when-property-is name="user.agent" value="gecko1_8"/>
  31. <when-property-is name="user.agent" value="opera"/>
  32. <when-property-is name="user.agent" value="safari"/>
  33. </any>
  34. <when-property-is name="selectorCapability" value="js"/>
  35. </replace-with>
  36. <replace-with class="com.google.gwt.query.client.impl.SelectorEngineNativeMinIE8">
  37. <when-type-assignable class="com.google.gwt.query.client.impl.SelectorEngineImpl"/>
  38. <when-property-is name="user.agent" value="ie8"/>
  39. <when-property-is name="selectorCapability" value="native"/>
  40. </replace-with>
  41. </module>