Skip to content

Commit

Permalink
Cleanup spacing in manipulation.js. Fixes #10601
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Oct 27, 2011
1 parent f0cf49f commit 0804cdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/manipulation.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ jQuery.fn.extend({
// in certain situations (Bug #8070). // in certain situations (Bug #8070).
// Fragments from the fragment cache must always be cloned and never used // Fragments from the fragment cache must always be cloned and never used
// in place. // in place.
results.cacheable || (l > 1 && i < lastIndex) ? results.cacheable || ( l > 1 && i < lastIndex ) ?
jQuery.clone( fragment, true, true ) : jQuery.clone( fragment, true, true ) :
fragment fragment
); );
Expand Down Expand Up @@ -523,7 +523,7 @@ jQuery.each({


} else { } else {
for ( var i = 0, l = insert.length; i < l; i++ ) { for ( var i = 0, l = insert.length; i < l; i++ ) {
var elems = (i > 0 ? this.clone(true) : this).get(); var elems = ( i > 0 ? this.clone(true) : this ).get();
jQuery( insert[i] )[ original ]( elems ); jQuery( insert[i] )[ original ]( elems );
ret = ret.concat( elems ); ret = ret.concat( elems );
} }
Expand Down Expand Up @@ -553,7 +553,7 @@ function fixDefaultChecked( elem ) {
} }
// Finds all inputs and passes them to fixDefaultChecked // Finds all inputs and passes them to fixDefaultChecked
function findInputs( elem ) { function findInputs( elem ) {
var nodeName = (elem.nodeName || "").toLowerCase(); var nodeName = ( elem.nodeName || "" ).toLowerCase();
if ( nodeName === "input" ) { if ( nodeName === "input" ) {
fixDefaultChecked( elem ); fixDefaultChecked( elem );
// Skip scripts, get other children // Skip scripts, get other children
Expand Down Expand Up @@ -645,7 +645,7 @@ jQuery.extend({
elem = elem.replace(rxhtmlTag, "<$1></$2>"); elem = elem.replace(rxhtmlTag, "<$1></$2>");


// Trim whitespace, otherwise indexOf won't work as expected // Trim whitespace, otherwise indexOf won't work as expected
var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(), var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
wrap = wrapMap[ tag ] || wrapMap._default, wrap = wrapMap[ tag ] || wrapMap._default,
depth = wrap[0], depth = wrap[0],
div = context.createElement("div"); div = context.createElement("div");
Expand Down

0 comments on commit 0804cdf

Please sign in to comment.