Fixes mangled indents.

Signed-off-by: Rick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron waldron.rick@gmail.com 2012-04-15 21:59:25 -04:00
parent aabc0d85bb
commit 576607de0f

View File

@ -499,16 +499,17 @@ jQuery.buildFragment = function( args, context, scripts ) {
cacheable = true; cacheable = true;
fragment = jQuery.fragments[ first ]; fragment = jQuery.fragments[ first ];
cachehit = fragment !== undefined; cachehit = fragment !== undefined;
} }
if ( !fragment ) { if ( !fragment ) {
fragment = context.createDocumentFragment(); fragment = context.createDocumentFragment();
jQuery.clean( args, context, fragment, scripts ); jQuery.clean( args, context, fragment, scripts );
if ( cacheable ) {
// Update the cache, but only store false // Update the cache, but only store false
// unless this is a second parsing of the same content // unless this is a second parsing of the same content
if ( cacheable ) {
jQuery.fragments[ first ] = cachehit && fragment; jQuery.fragments[ first ] = cachehit && fragment;
} }
} }
return { fragment: fragment, cacheable: cacheable }; return { fragment: fragment, cacheable: cacheable };
@ -531,7 +532,6 @@ jQuery.each({
if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
insert[ original ]( this[0] ); insert[ original ]( this[0] );
return this; return this;
} 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();