@@ -1,3 +1,6 @@
[submodule "test/qunit"]
path = test/qunit
url = git://github.com/jquery/qunit.git
[submodule "speed/benchmark.js"]
path = speed/benchmark.js
url = git://github.com/bestiejs/benchmark.js.git
@@ -4,7 +4,7 @@ module.exports = function( grunt ) {
// Project configuration.
grunt.initConfig({
lint: {
files: [ "grunt.js", "sizzle.js", "test/unit/*.js" ]
files: [ "grunt.js", "sizzle.js", "test/unit/*.js", "speed/speed.js" ]
},
qunit: {
files: [ "test/**/*.html" ]
@@ -0,0 +1,31 @@
{
"name": "sizzle",
"title": "Sizzle",
"description": "A pure-JavaScript, bottom-up CSS selector engine designed to be easily dropped in to a host library.",
"version": "1.8.2pre",
"homepage": "http://sizzlejs.com",
"author": {
"name": "jQuery Foundation and other contributors",
"url": "https://github.com/jquery/sizzle/blob/master/AUTHORS.txt"
},
"repository": {
"type": "git",
"url": "https://github.com/jquery/sizzle.git"
},
"bugs": {
"url": "https://github.com/jquery/sizzle/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt"
}
],
"dependencies": {},
"devDependencies": {
"grunt-git-authors": ">=1.0.0",
"grunt": "~0.3.9",
"testswarm": "0.2.2"
},
"keywords": [ "sizzle", "selector", "jquery" ]
}
@@ -1,8 +1,8 @@
/*!
* Sizzle CSS Selector Engine
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://sizzlejs.com/
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://sizzlejs.com/
*/
(function( window, undefined ) {

Submodule benchmark.js added at 985bdb

This file was deleted.

@@ -0,0 +1,20 @@
/*
* Check the necessity of the java applet and add it if needed
*/

define(function() {
var measured,
perfNow,
begin = new Date;

// is the applet permitted?
if ( !/[?&]nojava=true(?:&|$)/.test(window.location.search) ) {
// is the applet really needed?
while (!(measured = new Date - begin)) { }
if ( measured !== 1 &&
!( (perfNow = window.performance) && typeof (perfNow.now || perfNow.webkitNow) === "function" ) ) {
// load applet
document.write("<applet code=\"nano\" archive=\"benchmark.js/nano.jar\"></applet>");
}
}
});