aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-04-29 13:31:59 -0400
committerRichard Gibson <richard.gibson@gmail.com>2013-04-29 13:32:10 -0400
commita49693a5272b5cd501c14c2e02aeb5568ceb65a0 (patch)
tree8961e29bb2162031d22238a184818bab89f63e58
parent6a816ec95fd96d130a4af67a28873d9daa66a328 (diff)
downloadjquery-a49693a5272b5cd501c14c2e02aeb5568ceb65a0.tar.gz
jquery-a49693a5272b5cd501c14c2e02aeb5568ceb65a0.zip
Fix #13803: domManip remote-script evaluation per 1.9 (AJAX dataType "script")
(cherry picked from commit 18cccd04a6f69018242bce96ef905bc5d3be6ff8)
-rw-r--r--src/manipulation.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 0b6a2d7a0..6ad69dd7f 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -735,10 +735,10 @@ jQuery.extend({
return jQuery.ajax({
url: url,
type: "GET",
- dataType: "text",
+ dataType: "script",
async: false,
global: false,
- success: jQuery.globalEval
+ "throws": true
});
}
});