Script transport now uses ajaxSetup to define script dataType.
This commit is contained in:
parent
14b07ec5de
commit
e221d39e98
|
@ -1,7 +1,7 @@
|
||||||
(function( jQuery ) {
|
(function( jQuery ) {
|
||||||
|
|
||||||
// Install text to script executor
|
// Install script dataType
|
||||||
jQuery.extend( true, jQuery.ajaxSettings , {
|
jQuery.ajaxSetup({
|
||||||
|
|
||||||
accepts: {
|
accepts: {
|
||||||
script: "text/javascript, application/javascript"
|
script: "text/javascript, application/javascript"
|
||||||
|
@ -14,7 +14,7 @@ jQuery.extend( true, jQuery.ajaxSettings , {
|
||||||
converters: {
|
converters: {
|
||||||
"text script": jQuery.globalEval
|
"text script": jQuery.globalEval
|
||||||
}
|
}
|
||||||
} );
|
});
|
||||||
|
|
||||||
// Bind script tag hack transport
|
// Bind script tag hack transport
|
||||||
jQuery.ajax.transport("script", function(s) {
|
jQuery.ajax.transport("script", function(s) {
|
||||||
|
|
Loading…
Reference in a new issue