From: Timmy Willison Date: Mon, 30 Jul 2012 14:44:47 +0000 (-0400) Subject: Quote reserved keyword 'throws' to satisfy yui compressor. Fixes #12158. X-Git-Tag: 1.8.0~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=beeab4d126b303b194899adf579d8f43e3fd5e69;p=jquery.git Quote reserved keyword 'throws' to satisfy yui compressor. Fixes #12158. --- 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");