Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 1 | define( [ |
2 | "../data/var/dataPriv" | ||||
3 | ], function( dataPriv ) { | ||||
4 | |||||
5 | "use strict"; | ||||
6 | |||||
7 | // Mark scripts as having already been evaluated | ||||
8 | function 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 | |||||
21 | return setGlobalEval; | ||||
22 | } ); |