Fix some missing braces in core.js.
This commit is contained in:
parent
18a6fbbb6a
commit
b7a3b220a8
|
@ -47,7 +47,9 @@ jQuery.fn = jQuery.prototype = {
|
||||||
var match, elem, ret;
|
var match, elem, ret;
|
||||||
|
|
||||||
// Handle $(""), $(null), or $(undefined)
|
// Handle $(""), $(null), or $(undefined)
|
||||||
if ( !selector ) return this;
|
if ( !selector ) {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
// Handle $(DOMElement)
|
// Handle $(DOMElement)
|
||||||
if ( selector.nodeType ) {
|
if ( selector.nodeType ) {
|
||||||
|
@ -75,7 +77,9 @@ jQuery.fn = jQuery.prototype = {
|
||||||
if ( elem ) {
|
if ( elem ) {
|
||||||
// Handle the case where IE and Opera return items
|
// Handle the case where IE and Opera return items
|
||||||
// by name instead of ID
|
// 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
|
// Otherwise, we inject the element directly into the jQuery object
|
||||||
this.length++;
|
this.length++;
|
||||||
|
|
Loading…
Reference in a new issue