aboutsummaryrefslogtreecommitdiff
path: root/node_modules/jquery/src/manipulation/setGlobalEval.js
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-25 03:14:34 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-25 03:14:34 +0000
commit34f553940cd5e9fba5ca6062333f42ba741b700a (patch)
treed806ac66b323e688dcf09ba78a197ab41b4bcb5a /node_modules/jquery/src/manipulation/setGlobalEval.js
parent482401fa5777b910b099f96b0abdadf1d4cfa54c (diff)
Fixed /send_message error/success message show up.
Diffstat (limited to 'node_modules/jquery/src/manipulation/setGlobalEval.js')
-rw-r--r--node_modules/jquery/src/manipulation/setGlobalEval.js22
1 files changed, 22 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 0000000..cf95240
--- /dev/null
+++ b/node_modules/jquery/src/manipulation/setGlobalEval.js
@@ -0,0 +1,22 @@
+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;
+} );