From beeab4d126b303b194899adf579d8f43e3fd5e69 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Mon, 30 Jul 2012 10:44:47 -0400 Subject: [PATCH] Quote reserved keyword 'throws' to satisfy yui compressor. Fixes #12158. --- src/ajax.js | 2 +- src/manipulation.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.39.5