aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation/_evalUrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/manipulation/_evalUrl.js')
-rw-r--r--src/manipulation/_evalUrl.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/manipulation/_evalUrl.js b/src/manipulation/_evalUrl.js
new file mode 100644
index 000000000..42ec67834
--- /dev/null
+++ b/src/manipulation/_evalUrl.js
@@ -0,0 +1,16 @@
+define([
+ "../ajax"
+], function( jQuery ) {
+ jQuery._evalUrl = function( url ) {
+ return jQuery.ajax({
+ url: url,
+ type: "GET",
+ dataType: "script",
+ async: false,
+ global: false,
+ "throws": true
+ });
+ };
+
+ return jQuery._evalUrl;
+});