From c27cbdc4770e0641bff705599b3349e9d665246f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Mon, 14 Jan 2008 09:42:53 +0000 Subject: [PATCH] reverted change for #2114 --- src/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.js b/src/core.js index 5e807750..4a4ff95d 100644 --- a/src/core.js +++ b/src/core.js @@ -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 ] );