git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
18a6fbb
)
Fix some missing braces in core.js.
author
John Resig
<jeresig@gmail.com>
Mon, 27 Jul 2009 20:48:42 +0000
(20:48 +0000)
committer
John Resig
<jeresig@gmail.com>
Mon, 27 Jul 2009 20:48:42 +0000
(20:48 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
5f2cf20
..
35cac37
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-47,7
+47,9
@@
jQuery.fn = jQuery.prototype = {
var match, elem, ret;
// Handle $(""), $(null), or $(undefined)
var match, elem, ret;
// Handle $(""), $(null), or $(undefined)
- if ( !selector ) return this;
+ if ( !selector ) {
+ return this;
+ }
// Handle $(DOMElement)
if ( selector.nodeType ) {
// Handle $(DOMElement)
if ( selector.nodeType ) {
@@
-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 ) {
// 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++;
// Otherwise, we inject the element directly into the jQuery object
this.length++;