aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-01-07 18:38:21 +0400
committerDave Methvin <dave.methvin@gmail.com>2013-01-08 02:41:15 +0000
commitc9bf5c5e905ec8c4d29c61f8ddf04d8a40d8e04e (patch)
tree0855fae1b990f242a24004c3675d183072f2c0c4 /src/core.js
parent054daa20afc0e2c84e66f450b155d0253a62aedb (diff)
downloadjquery-c9bf5c5e905ec8c4d29c61f8ddf04d8a40d8e04e.tar.gz
jquery-c9bf5c5e905ec8c4d29c61f8ddf04d8a40d8e04e.zip
Bring back jQuery.buildFragment and remove jQuery.clean
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core.js b/src/core.js
index 41e68268e..202188deb 100644
--- a/src/core.js
+++ b/src/core.js
@@ -470,11 +470,12 @@ jQuery.extend({
return [ context.createElement( parsed[1] ) ];
}
- parsed = context.createDocumentFragment();
- jQuery.clean( [ data ], context, parsed, scripts );
+ parsed = jQuery.buildFragment( [ data ], context, scripts );
+
if ( scripts ) {
jQuery( scripts ).remove();
}
+
return jQuery.merge( [], parsed.childNodes );
},