initial checkin from subversion

This commit is contained in:
Tretter
2017-02-07 20:04:47 +00:00
commit d646c300cb
1587 changed files with 184610 additions and 0 deletions

24
server/node_modules/jquery/test/helpers/helper.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
/**
* Returns an array of elements with the given IDs, eg.
* @example q("main", "foo", "bar")
* @result [<div id="main">, <span id="foo">, <input id="bar">]
*/
var query_ids = function() {
var r = [];
for ( var i = 0; i < arguments.length; i++ ) {
r.push( document.getElementById( arguments[i] ) );
}
return r;
};
var recreate_doc = function(html) {
document = require('jsdom').jsdom(html);
window = document.createWindow();
return require(process.cwd() + '/lib/node-jquery').create(window);
};
exports.query_ids = query_ids;
exports.recreate_doc = recreate_doc;