historia-de-zainab/bower_components/jquery/src/manipulation/setGlobalEval.js
2017-09-25 14:03:53 +02:00

22 lines
381 B
JavaScript

define( [
"../data/var/dataPriv"
], function( dataPriv ) {
"use strict";
// Mark scripts as having already been evaluated
function setGlobalEval( elems, refElements ) {
var i = 0,
l = elems.length;
for ( ; i < l; i++ ) {
dataPriv.set(
elems[ i ],
"globalEval",
!refElements || dataPriv.get( refElements[ i ], "globalEval" )
);
}
}
return setGlobalEval;
} );