Skip to content
Permalink
Browse files

Script transport now uses ajaxSetup to define script dataType.

  • Loading branch information...
jaubourg committed Jan 12, 2011
1 parent 14b07ec commit e221d39e981ceac030d2e0431570742fb51337d5
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/ajax/script.js
@@ -1,7 +1,7 @@
(function( jQuery ) {

// Install text to script executor
jQuery.extend( true, jQuery.ajaxSettings , {
// Install script dataType
jQuery.ajaxSetup({

accepts: {
script: "text/javascript, application/javascript"
@@ -14,7 +14,7 @@ jQuery.extend( true, jQuery.ajaxSettings , {
converters: {
"text script": jQuery.globalEval
}
} );
});

// Bind script tag hack transport
jQuery.ajax.transport("script", function(s) {

0 comments on commit e221d39

Please sign in to comment.
You can’t perform that action at this time.