updated npm modules
This commit is contained in:
9
node_modules/jquery/src/manipulation/buildFragment.js
generated
vendored
9
node_modules/jquery/src/manipulation/buildFragment.js
generated
vendored
@@ -1,19 +1,20 @@
|
||||
define( [
|
||||
"../core",
|
||||
"../core/toType",
|
||||
"../core/isAttached",
|
||||
"./var/rtagName",
|
||||
"./var/rscriptType",
|
||||
"./wrapMap",
|
||||
"./getAll",
|
||||
"./setGlobalEval"
|
||||
], function( jQuery, toType, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
|
||||
], function( jQuery, toType, isAttached, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var rhtml = /<|&#?\w+;/;
|
||||
|
||||
function buildFragment( elems, context, scripts, selection, ignored ) {
|
||||
var elem, tmp, tag, wrap, contains, j,
|
||||
var elem, tmp, tag, wrap, attached, j,
|
||||
fragment = context.createDocumentFragment(),
|
||||
nodes = [],
|
||||
i = 0,
|
||||
@@ -77,13 +78,13 @@ function buildFragment( elems, context, scripts, selection, ignored ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
contains = jQuery.contains( elem.ownerDocument, elem );
|
||||
attached = isAttached( elem );
|
||||
|
||||
// Append to fragment
|
||||
tmp = getAll( fragment.appendChild( elem ), "script" );
|
||||
|
||||
// Preserve script evaluation history
|
||||
if ( contains ) {
|
||||
if ( attached ) {
|
||||
setGlobalEval( tmp );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user