Fixed problem with $("div",$("body")) breaking (returning an array, of length one...
[jquery.git] / src / selector / selector.js
index 4633c30..7f71e2e 100644 (file)
@@ -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
+});