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

Ref c9cf250daa
Fixes gh-2571
This commit is contained in:
Oleg Gaidarenko 2015-09-03 03:03:12 +03:00
parent 20ddbe4f59
commit c530661629

View File

@ -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 {