2773: first pass adding node/jQuery object support to jQuery.fn.find; unit tests added
This commit is contained in:
parent
8246347b71
commit
7a69e34a5c
3 changed files with 39 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue