Commit 46d0a5cf authored by Rick Waldron's avatar Rick Waldron

Merge pull request #738 from rwldrn/fix-mangled-indents

Fix mangled indents
parents aabc0d85 6e0b3e8e
...@@ -314,8 +314,8 @@ jQuery.fn.extend({ ...@@ -314,8 +314,8 @@ jQuery.fn.extend({
if ( this[0] ) { if ( this[0] ) {
results = jQuery.buildFragment( args, this, scripts ); results = jQuery.buildFragment( args, this, scripts );
fragment = results.fragment; fragment = results.fragment;
first = fragment.firstChild; first = fragment.firstChild;
if ( fragment.childNodes.length === 1 ) { if ( fragment.childNodes.length === 1 ) {
fragment = first; fragment = first;
} }
...@@ -504,9 +504,10 @@ jQuery.buildFragment = function( args, context, scripts ) { ...@@ -504,9 +504,10 @@ jQuery.buildFragment = function( args, context, scripts ) {
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;
} }
} }
...@@ -531,7 +532,6 @@ jQuery.each({ ...@@ -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();
......
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