Manipulation: Support $el.html(selfRemovingScript) (#5378)
[jquery.git] / src / manipulation / setGlobalEval.js
blob9571bdcfa1fa3237ffdc3141dd2ae59bb7fe0cdb
1 import { dataPriv } from "../data/var/dataPriv.js";
3 // Mark scripts as having already been evaluated
4 export function setGlobalEval( elems, refElements ) {
5         var i = 0,
6                 l = elems.length;
8         for ( ; i < l; i++ ) {
9                 dataPriv.set(
10                         elems[ i ],
11                         "globalEval",
12                         !refElements || dataPriv.get( refElements[ i ], "globalEval" )
13                 );
14         }