X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fselector%2Fselector.js;h=7f71e2e346efb9ce9d29a646ad4e4e94efe390e4;hb=33662cd713c28b2db0adccec170ffe93b35f098a;hp=4633c3094c23ca14132159cfb3311ce88fb83f67;hpb=0798c6e64e4e0c984d5ece50ade61827c2105c39;p=jquery.git diff --git a/src/selector/selector.js b/src/selector/selector.js index 4633c30..7f71e2e 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 +});