aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation
diff options
context:
space:
mode:
Diffstat (limited to 'src/manipulation')
-rw-r--r--src/manipulation/_evalUrl.js16
-rw-r--r--src/manipulation/var/rcheckableType.js3
2 files changed, 19 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;
+});
diff --git a/src/manipulation/var/rcheckableType.js b/src/manipulation/var/rcheckableType.js
new file mode 100644
index 000000000..29049b3ae
--- /dev/null
+++ b/src/manipulation/var/rcheckableType.js
@@ -0,0 +1,3 @@
+define(function() {
+ return /^(?:checkbox|radio)$/i;
+}); \ No newline at end of file