Ajax: do not quote "throws" option - use dot notation instead

Fixes gh-2571
Closes gh-2542
This commit is contained in:
Oleg Gaidarenko 2015-09-03 03:01:28 +03:00
parent e35bdc1a22
commit c9cf250daa

View File

@ -264,7 +264,7 @@ function ajaxConvert( s, response, jqXHR, isSuccess ) {
if ( conv !== true ) { if ( conv !== true ) {
// Unless errors are allowed to bubble, catch and return them // Unless errors are allowed to bubble, catch and return them
if ( conv && s[ "throws" ] ) { // jscs:ignore requireDotNotation if ( conv && s.throws ) {
response = conv( response ); response = conv( response );
} else { } else {
try { try {