Fixed a bug with $("body") in dynamic documents, refactored $(...), stopped the test suite from trying to run Ajax tests locally.

This commit is contained in:
John Resig 2007-01-08 00:12:41 +00:00
parent 5acecf6e28
commit 12e6335339
4 changed files with 43 additions and 39 deletions

View file

@ -214,10 +214,6 @@ jQuery.extend({
ret = r = oid &&
(!m[3] || oid.nodeName == m[3].toUpperCase()) ? [oid] : [];
// Use the DOM 0 shortcut for the body element
} else if ( m[1] == "" && m[2] == "body" ) {
ret = r = [ document.body ];
} else {
// Pre-compile a regular expression to handle class searches
if ( m[1] == "." )