diff --git a/src/ajax.js b/src/ajax.js index 304a41d48..f3887ff44 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -861,7 +861,7 @@ function ajaxConvert( s, response ) { if ( conv !== true ) { // Unless errors are allowed to bubble, catch and return them - if ( conv && s.throws ) { + if ( conv && s["throws"] ) { response = conv( response ); } else { try { diff --git a/src/manipulation.js b/src/manipulation.js index d1dcb3768..3cfc97c3b 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -362,7 +362,7 @@ jQuery.fn.extend({ dataType: "script", async: false, global: false, - throws: true + "throws": true }); } else { jQuery.error("no ajax");