Commit e221d39e authored by jaubourg's avatar jaubourg

Script transport now uses ajaxSetup to define script dataType.

parent 14b07ec5
(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 , { ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment