Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reverted change for #2114

  • Loading branch information...
commit c27cbdc4770e0641bff705599b3349e9d665246f 1 parent 2fa8556
@jzaefferer jzaefferer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core.js
View
4 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 ] );
Please sign in to comment.
Something went wrong with that request. Please try again.