From: Rick Waldron waldron.rick@gmail.com Date: Mon, 16 Apr 2012 01:59:25 +0000 (-0400) Subject: Fixes mangled indents. X-Git-Tag: 1.8b1~203^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=576607de0f00797f503473299d46155b06dba016;p=jquery.git Fixes mangled indents. Signed-off-by: Rick Waldron waldron.rick@gmail.com --- diff --git a/src/manipulation.js b/src/manipulation.js index e7de7a621..60f4798b5 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -499,16 +499,17 @@ jQuery.buildFragment = function( args, context, scripts ) { cacheable = true; fragment = jQuery.fragments[ first ]; cachehit = fragment !== undefined; - } + } if ( !fragment ) { fragment = context.createDocumentFragment(); jQuery.clean( args, context, fragment, scripts ); - if ( cacheable ) { - // Update the cache, but only store false - // unless this is a second parsing of the same content + + // Update the cache, but only store false + // unless this is a second parsing of the same content + if ( cacheable ) { jQuery.fragments[ first ] = cachehit && fragment; - } + } } return { fragment: fragment, cacheable: cacheable }; @@ -531,7 +532,6 @@ jQuery.each({ if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { insert[ original ]( this[0] ); return this; - } else { for ( var i = 0, l = insert.length; i < l; i++ ) { var elems = ( i > 0 ? this.clone(true) : this ).get();