diff options
Diffstat (limited to 'node_modules/jquery/src/manipulation/setGlobalEval.js')
-rw-r--r-- | node_modules/jquery/src/manipulation/setGlobalEval.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/node_modules/jquery/src/manipulation/setGlobalEval.js b/node_modules/jquery/src/manipulation/setGlobalEval.js new file mode 100644 index 0000000000..8ca69a03ad --- /dev/null +++ b/node_modules/jquery/src/manipulation/setGlobalEval.js @@ -0,0 +1,20 @@ +define( [ + "../data/var/dataPriv" +], function( dataPriv ) { + +// 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; +} ); |