Commit da062c54 authored by Rick Waldron's avatar Rick Waldron

Cleanup spacing in core.js. Fixes #10601

parent 9ff4f26c
...@@ -119,7 +119,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -119,7 +119,7 @@ jQuery.fn = jQuery.prototype = {
// HANDLE: $(html) -> $(array) // HANDLE: $(html) -> $(array)
if ( match[1] ) { if ( match[1] ) {
context = context instanceof jQuery ? context[0] : context; context = context instanceof jQuery ? context[0] : context;
doc = (context ? context.ownerDocument || context : document); doc = ( context ? context.ownerDocument || context : document );
// If a single string is passed in and it's a single tag // If a single string is passed in and it's a single tag
// just do a createElement and skip the rest // just do a createElement and skip the rest
...@@ -136,7 +136,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -136,7 +136,7 @@ jQuery.fn = jQuery.prototype = {
} else { } else {
ret = jQuery.buildFragment( [ match[1] ], [ doc ] ); ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes; selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
} }
return jQuery.merge( this, selector ); return jQuery.merge( this, selector );
...@@ -166,7 +166,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -166,7 +166,7 @@ jQuery.fn = jQuery.prototype = {
// HANDLE: $(expr, $(...)) // HANDLE: $(expr, $(...))
} else if ( !context || context.jquery ) { } else if ( !context || context.jquery ) {
return (context || rootjQuery).find( selector ); return ( context || rootjQuery ).find( selector );
// HANDLE: $(expr, context) // HANDLE: $(expr, context)
// (which is just equivalent to: $(context).find(expr) // (which is just equivalent to: $(context).find(expr)
...@@ -180,7 +180,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -180,7 +180,7 @@ jQuery.fn = jQuery.prototype = {
return rootjQuery.ready( selector ); return rootjQuery.ready( selector );
} }
if (selector.selector !== undefined) { if ( selector.selector !== undefined ) {
this.selector = selector.selector; this.selector = selector.selector;
this.context = selector.context; this.context = selector.context;
} }
...@@ -237,7 +237,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -237,7 +237,7 @@ jQuery.fn = jQuery.prototype = {
ret.context = this.context; ret.context = this.context;
if ( name === "find" ) { if ( name === "find" ) {
ret.selector = this.selector + (this.selector ? " " : "") + selector; ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
} else if ( name ) { } else if ( name ) {
ret.selector = this.selector + "." + name + "(" + selector + ")"; ret.selector = this.selector + "." + name + "(" + selector + ")";
} }
...@@ -552,7 +552,7 @@ jQuery.extend({ ...@@ -552,7 +552,7 @@ jQuery.extend({
.replace( rvalidtokens, "]" ) .replace( rvalidtokens, "]" )
.replace( rvalidbraces, "")) ) { .replace( rvalidbraces, "")) ) {
return (new Function( "return " + data ))(); return ( new Function( "return " + data ) )();
} }
jQuery.error( "Invalid JSON: " + data ); jQuery.error( "Invalid JSON: " + data );
...@@ -833,7 +833,7 @@ jQuery.extend({ ...@@ -833,7 +833,7 @@ jQuery.extend({
}, },
now: function() { now: function() {
return (new Date()).getTime(); return ( new Date() ).getTime();
}, },
// Use of jQuery.browser is frowned upon. // Use of jQuery.browser is frowned upon.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment