Skip to content

Commit

Permalink
Fix some missing braces in core.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Jul 27, 2009
1 parent 18a6fbb commit b7a3b22
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/core.js
Expand Up @@ -47,7 +47,9 @@ jQuery.fn = jQuery.prototype = {
var match, elem, ret;

// Handle $(""), $(null), or $(undefined)
if ( !selector ) return this;
if ( !selector ) {
return this;
}

// Handle $(DOMElement)
if ( selector.nodeType ) {
Expand Down Expand Up @@ -75,7 +77,9 @@ jQuery.fn = jQuery.prototype = {
if ( elem ) {
// Handle the case where IE and Opera return items
// by name instead of ID
if ( elem.id !== match[2] ) return rootjQuery.find( selector );
if ( elem.id !== match[2] ) {
return rootjQuery.find( selector );
}

// Otherwise, we inject the element directly into the jQuery object
this.length++;
Expand Down

0 comments on commit b7a3b22

Please sign in to comment.