blob: cf95240a480281b5a2df2f42f5c2e7827ca8aba4 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001define( [
2 "../data/var/dataPriv"
3], function( dataPriv ) {
4
5"use strict";
6
7// Mark scripts as having already been evaluated
8function setGlobalEval( elems, refElements ) {
9 var i = 0,
10 l = elems.length;
11
12 for ( ; i < l; i++ ) {
13 dataPriv.set(
14 elems[ i ],
15 "globalEval",
16 !refElements || dataPriv.get( refElements[ i ], "globalEval" )
17 );
18 }
19}
20
21return setGlobalEval;
22} );