From c9cf250daafe806818da1dd207a88a8e94a4ad16 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Thu, 3 Sep 2015 03:01:28 +0300 Subject: [PATCH] Ajax: do not quote "throws" option - use dot notation instead Fixes gh-2571 Closes gh-2542 --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index 84ddc304a..32b6a1be2 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