aboutsummaryrefslogtreecommitdiffstats
path: root/bower_components/jquery/src/manipulation/createSafeFragment.js
diff options
context:
space:
mode:
authorLibravatarDererk <dererk@satellogic.com>2016-11-15 14:18:46 -0300
committerLibravatarDererk <dererk@satellogic.com>2016-11-15 14:18:46 -0300
commitffb671c61a24a9086343b54bad080e145ff33fc5 (patch)
tree2c5291f7a34edf4afdc8e07887a148291bfa3fa1 /bower_components/jquery/src/manipulation/createSafeFragment.js
parent4e3224c012df9f74f010eb92203520515e8537b9 (diff)
New upstream version 7.8.1upstream/7.8.1
Diffstat (limited to 'bower_components/jquery/src/manipulation/createSafeFragment.js')
-rw-r--r--bower_components/jquery/src/manipulation/createSafeFragment.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/bower_components/jquery/src/manipulation/createSafeFragment.js b/bower_components/jquery/src/manipulation/createSafeFragment.js
new file mode 100644
index 0000000..5b766d4
--- /dev/null
+++ b/bower_components/jquery/src/manipulation/createSafeFragment.js
@@ -0,0 +1,20 @@
+define( [
+ "./var/nodeNames"
+], function( nodeNames ) {
+
+function createSafeFragment( document ) {
+ var list = nodeNames.split( "|" ),
+ safeFrag = document.createDocumentFragment();
+
+ if ( safeFrag.createElement ) {
+ while ( list.length ) {
+ safeFrag.createElement(
+ list.pop()
+ );
+ }
+ }
+ return safeFrag;
+}
+
+return createSafeFragment;
+} );