From c530661629ac713a3ccab9691773cc6de5e84759 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Thu, 3 Sep 2015 03:03:12 +0300 Subject: [PATCH] Ajax: do not quote "throws" option - use dot notation instead Ref c9cf250daafe806818da1dd207a88a8e94a4ad16 Fixes gh-2571 --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index c8706aae6..b3cb54d39 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -264,7 +264,7 @@ function ajaxConvert( s, response, jqXHR, isSuccess ) { if ( conv !== true ) { // Unless errors are allowed to bubble, catch and return them - if ( conv && s[ "throws" ] ) { // jscs:ignore requireDotNotation + if ( conv && s.throws ) { response = conv( response ); } else { try { -- 2.39.5