]> source.dussan.org Git - jquery.git/commitdiff
Script transport now uses ajaxSetup to define script dataType.
authorjaubourg <j@ubourg.net>
Wed, 12 Jan 2011 17:54:15 +0000 (18:54 +0100)
committerjaubourg <j@ubourg.net>
Wed, 12 Jan 2011 17:54:15 +0000 (18:54 +0100)
src/ajax/script.js

index 0db0de6c7ef7d56dfc4047018028efd870a249a8..75f34fce20b6bc753b6a79f937fd6173e0e8e9db 100644 (file)
@@ -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) {