Fixed problem with $("div",$("body")) breaking (returning an array, of length one, containing undefined).
This commit is contained in:
parent
0798c6e64e
commit
33662cd713
2 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@ jQuery.extend({
|
|||
return [ t ];
|
||||
|
||||
// Make sure that the context is a DOM Element
|
||||
if ( context && context.nodeType == undefined )
|
||||
if ( context && !context.nodeType )
|
||||
context = null;
|
||||
|
||||
// Set the correct context (if none is provided)
|
||||
|
@ -423,4 +423,4 @@ jQuery.extend({
|
|||
|
||||
return r;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue