1 var jQuery = this.jQuery || "jQuery", // For testing .noConflict()
3 originaljQuery = jQuery,
7 * Returns an array of elements with the given IDs, eg.
8 * @example q("main", "foo", "bar")
9 * @result [<div id="main">, <span id="foo">, <input id="bar">]
14 for ( var i = 0; i < arguments.length; i++ ) {
15 r.push( document.getElementById( arguments[i] ) );
22 * Asserts that a select matches the given IDs * @example t("Check for something", "//[a]", ["foo", "baar"]);
23 * @result returns true if "//[a]" return two elements with the IDs 'foo' and 'baa
27 var f = jQuery(b).get(), s = "";
29 for ( var i = 0; i < f.length; i++ ) {
30 s += (s && ",") + '"' + f[i].id + '"';
33 same(f, q.apply(q,c), a + " (" + b + ")");
37 * Add random number to url to stop IE from caching
39 * @example url("data/test.html")
40 * @result "data/test.html?10538358428943"
42 * @example url("data/test.php?foo=bar")
43 * @result "data/test.php?foo=bar&10538358345554"
46 return value + (/\?/.test(value) ? "&" : "?") + new Date().getTime() + "" + parseInt(Math.random()*100000);