summaryrefslogtreecommitdiff
path: root/templates/assets/jquery/src/manipulation/_evalUrl.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-22 19:19:26 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-22 19:19:26 +0100
commitd42c8b528eb595101954f478e0024e3f079f6fbf (patch)
tree61a528cf94f1f6941f4683ae8736a4a0135c035e /templates/assets/jquery/src/manipulation/_evalUrl.js
downloadminionlivesmatter-d42c8b528eb595101954f478e0024e3f079f6fbf.tar.gz
minionlivesmatter-d42c8b528eb595101954f478e0024e3f079f6fbf.zip
first implementation of fun stats site
Diffstat (limited to 'templates/assets/jquery/src/manipulation/_evalUrl.js')
-rw-r--r--templates/assets/jquery/src/manipulation/_evalUrl.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/assets/jquery/src/manipulation/_evalUrl.js b/templates/assets/jquery/src/manipulation/_evalUrl.js
new file mode 100644
index 0000000..85ca2c6
--- /dev/null
+++ b/templates/assets/jquery/src/manipulation/_evalUrl.js
@@ -0,0 +1,20 @@
+define( [
+ "../ajax"
+], function( jQuery ) {
+
+jQuery._evalUrl = function( url ) {
+ return jQuery.ajax( {
+ url: url,
+
+ // Make this explicit, since user can override this through ajaxSetup (#11264)
+ type: "GET",
+ dataType: "script",
+ async: false,
+ global: false,
+ "throws": true
+ } );
+};
+
+return jQuery._evalUrl;
+
+} );