2773: first pass adding node/jQuery object support to jQuery.fn.find; unit tests added

This commit is contained in:
timmywil 2011-03-16 01:16:32 -04:00
parent 8246347b71
commit 7a69e34a5c
3 changed files with 39 additions and 11 deletions

View file

@ -88,7 +88,7 @@ jQuery.fn = jQuery.prototype = {
if ( selector === "body" && !context && document.body ) {
this.context = document;
this[0] = document.body;
this.selector = "body";
this.selector = selector;
this.length = 1;
return this;
}