mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
reverted change for #2114
This commit is contained in:
parent
2fa855601e
commit
c27cbdc477
@ -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 ] );
|
||||
|
Loading…
Reference in New Issue
Block a user