diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-08-15 14:15:49 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-08-15 14:15:49 -0400 |
commit | 6318ae6ab90d4b450dfadf32ab95fe52ed6331cb (patch) | |
tree | 50b247fed8569e909e380b281e9145bd1458a39e /src/manipulation | |
parent | 7627b8b6d9ef6e57dbd20a55b946bd1991c1223e (diff) | |
download | jquery-6318ae6ab90d4b450dfadf32ab95fe52ed6331cb.tar.gz jquery-6318ae6ab90d4b450dfadf32ab95fe52ed6331cb.zip |
AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.
Diffstat (limited to 'src/manipulation')
-rw-r--r-- | src/manipulation/_evalUrl.js | 16 | ||||
-rw-r--r-- | src/manipulation/var/rcheckableType.js | 3 |
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 |