reverted change for #2114

This commit is contained in:
Jörn Zaefferer 2008-01-14 09:42:53 +00:00
parent 2fa855601e
commit c27cbdc477

View File

@ -38,7 +38,7 @@ jQuery.fn = jQuery.prototype = {
selector = selector || document;
// Handle $(DOMElement)
if ( selector.nodeType && !selector.length ) {
if ( selector.nodeType ) {
this[0] = selector;
this.length = 1;
return this;
@ -93,7 +93,7 @@ jQuery.fn = jQuery.prototype = {
// HANDLE: $(arraylike)
// Watch for when an array-like object, contains DOM nodes, is passed in as the selector
(selector.jquery || selector.length && selector != window && selector[0] != undefined && selector[0].nodeType) && jQuery.makeArray( selector ) ||
(selector.jquery || selector.length && selector != window && !selector.nodeType && selector[0] != undefined && selector[0].nodeType) && jQuery.makeArray( selector ) ||
// HANDLE: $(*)
[ selector ] );