1 import { jQuery } from "../ajax.js";
3 jQuery._evalUrl = function( url, options, doc ) {
7 // Make this explicit, since user can override this through ajaxSetup (trac-11264)
13 scriptAttrs: options.crossOrigin ? { "crossOrigin": options.crossOrigin } : undefined,
15 // Only evaluate the response if it is successful (gh-4126)
16 // dataFilter is not invoked for failure responses, so using it instead
17 // of the default converter is kludgy but it works.
19 "text script": function() {}
21 dataFilter: function( response ) {
22 jQuery.globalEval( response, options, doc );