diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2012-05-31 08:31:13 -0700 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-05-31 08:31:13 -0700 |
commit | 742872984e000ff8e13b9a23e74852d1b549f161 (patch) | |
tree | 4c267ffba6cedbe604f741f1a42d7baed5612254 /src/manipulation.js | |
parent | 2d37b6ccb8a5fb9eb47a43221ec10faa693e63c5 (diff) | |
download | jquery-742872984e000ff8e13b9a23e74852d1b549f161.tar.gz jquery-742872984e000ff8e13b9a23e74852d1b549f161.zip |
Fix #11743: Don't mask script errors in jQuery.ajax, closes gh-795.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index 2c1f0d2b3..a6b8edc6f 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -343,11 +343,12 @@ jQuery.fn.extend({ jQuery.each( scripts, function( i, elem ) { if ( elem.src ) { jQuery.ajax({ - type: "GET", - global: false, url: elem.src, + type: "GET", + dataType: "script", async: false, - dataType: "script" + global: false, + throws: true }); } else { jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "" ) ); |