reverted change for #2114
This commit is contained in:
parent
2fa855601e
commit
c27cbdc477
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ jQuery.fn = jQuery.prototype = {
|
||||||
selector = selector || document;
|
selector = selector || document;
|
||||||
|
|
||||||
// Handle $(DOMElement)
|
// Handle $(DOMElement)
|
||||||
if ( selector.nodeType && !selector.length ) {
|
if ( selector.nodeType ) {
|
||||||
this[0] = selector;
|
this[0] = selector;
|
||||||
this.length = 1;
|
this.length = 1;
|
||||||
return this;
|
return this;
|
||||||
|
@ -93,7 +93,7 @@ jQuery.fn = jQuery.prototype = {
|
||||||
|
|
||||||
// HANDLE: $(arraylike)
|
// HANDLE: $(arraylike)
|
||||||
// Watch for when an array-like object, contains DOM nodes, is passed in as the selector
|
// 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: $(*)
|
// HANDLE: $(*)
|
||||||
[ selector ] );
|
[ selector ] );
|
||||||
|
|
Loading…
Reference in a new issue