mirror of
https://github.com/jquery/jquery.git
synced 2026-02-05 09:35:01 -05:00
16
src/manipulation/_evalUrl.js
Normal file
16
src/manipulation/_evalUrl.js
Normal file
@@ -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;
|
||||
});
|
||||
3
src/manipulation/var/rcheckableType.js
Normal file
3
src/manipulation/var/rcheckableType.js
Normal file
@@ -0,0 +1,3 @@
|
||||
define(function() {
|
||||
return /^(?:checkbox|radio)$/i;
|
||||
});
|
||||
Reference in New Issue
Block a user