diff options
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, "" ) ); |