git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed problem with $("div",$("body")) breaking (returning an array, of length one...
[jquery.git]
/
src
/
selector
/
selector.js
diff --git
a/src/selector/selector.js
b/src/selector/selector.js
index
4633c30
..
7f71e2e
100644
(file)
--- a/
src/selector/selector.js
+++ b/
src/selector/selector.js
@@
-101,7
+101,7
@@
jQuery.extend({
return [ t ];
// Make sure that the context is a DOM Element
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)
context = null;
// Set the correct context (if none is provided)
@@
-423,4
+423,4
@@
jQuery.extend({
return r;
}
return r;
}
-});
\ No newline at end of file
+});