]> source.dussan.org Git - jquery.git/commitdiff
Fix #13803: domManip remote-script evaluation per 1.9 (AJAX dataType "script")
authorRichard Gibson <richard.gibson@gmail.com>
Mon, 29 Apr 2013 17:31:59 +0000 (13:31 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Mon, 29 Apr 2013 17:31:59 +0000 (13:31 -0400)
src/manipulation.js

index 55d6e851058e424a0aba26c4ba1447f1fdb4f6b0..58a598144b1a6370dc58d55fa3b5609b2c37d20f 100644 (file)
@@ -469,10 +469,10 @@ jQuery.extend({
                return jQuery.ajax({
                        url: url,
                        type: "GET",
-                       dataType: "text",
+                       dataType: "script",
                        async: false,
                        global: false,
-                       success: jQuery.globalEval
+                       "throws": true
                });
        }
 });