update Sizzle

This commit is contained in:
Richard Gibson 2012-11-16 15:57:43 -05:00
parent 28df086bbc
commit d08d48337f
2 changed files with 14 additions and 11 deletions

@ -1 +1 @@
Subproject commit 7ea8b52ed6f4e3026216037c00a24edd9fce4fff
Subproject commit c488e18facdf50de2d272a052d1e0f663ec19fd4

View File

@ -14,12 +14,11 @@
<script src="data/testinit.js"></script>
<script src="qunit/qunit/qunit.js"></script>
<!-- Loads minified version if min=true is present in the search -->
<!-- Nullifies querySelectorAll if noqsa=true is present -->
<script>
(function() {
var src = "../dist/jquery.js";
// Config parameter to use minified jQuery
QUnit.config.urlConfig.push({
id: "min",
label: "Load minified",
@ -29,15 +28,19 @@
src = "../dist/jquery.min.js";
}
// Config parameter to force basic code paths
QUnit.config.urlConfig.push({
id: "noqsa",
label: "Disable querySelectorAll",
tooltip: "Disable the native document.querySelectorAll"
id: "basic",
label: "Bypass optimizations",
tooltip: "Force use of the most basic code by disabling native querySelectorAll; contains; compareDocumentPosition"
});
if ( QUnit.urlParams.noqsa ) {
if ( QUnit.urlParams.basic ) {
document.querySelectorAll = null;
document.documentElement.contains = null;
document.documentElement.compareDocumentPosition = null;
}
// Load jQuery
document.write( "<script src='" + src + "'><\/script>" );
})();
</script>