aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector/selector.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-07 22:29:15 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-07 22:29:15 +0000
commit33662cd713c28b2db0adccec170ffe93b35f098a (patch)
tree04746023787b157f7447a16e63c455751c1bde92 /src/selector/selector.js
parent0798c6e64e4e0c984d5ece50ade61827c2105c39 (diff)
downloadjquery-33662cd713c28b2db0adccec170ffe93b35f098a.tar.gz
jquery-33662cd713c28b2db0adccec170ffe93b35f098a.zip
Fixed problem with $("div",$("body")) breaking (returning an array, of length one, containing undefined).
Diffstat (limited to 'src/selector/selector.js')
-rw-r--r--src/selector/selector.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js
index 4633c3094..7f71e2e34 100644
--- 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
- 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;
}
-}); \ No newline at end of file
+});