2016-10-28 17:56:41 +00:00
|
|
|
define( [
|
|
|
|
"../ajax"
|
|
|
|
], function( jQuery ) {
|
|
|
|
|
2016-11-22 23:12:51 +00:00
|
|
|
"use strict";
|
|
|
|
|
2016-10-28 17:56:41 +00:00
|
|
|
jQuery._evalUrl = function( url ) {
|
|
|
|
return jQuery.ajax( {
|
|
|
|
url: url,
|
|
|
|
|
|
|
|
// Make this explicit, since user can override this through ajaxSetup (#11264)
|
|
|
|
type: "GET",
|
|
|
|
dataType: "script",
|
2016-11-22 23:12:51 +00:00
|
|
|
cache: true,
|
2016-10-28 17:56:41 +00:00
|
|
|
async: false,
|
|
|
|
global: false,
|
|
|
|
"throws": true
|
|
|
|
} );
|
|
|
|
};
|
|
|
|
|
|
|
|
return jQuery._evalUrl;
|
|
|
|
|
|
|
|
} );
|