diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-09-03 03:01:28 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-09-07 20:03:51 +0300 |
commit | c9cf250daafe806818da1dd207a88a8e94a4ad16 (patch) | |
tree | 449cae7f59898a1d443ade63ffbc81ae640f367b | |
parent | e35bdc1a22d7b5786b8f849acdc4653f1dc25e9b (diff) | |
download | jquery-c9cf250daafe806818da1dd207a88a8e94a4ad16.tar.gz jquery-c9cf250daafe806818da1dd207a88a8e94a4ad16.zip |
Ajax: do not quote "throws" option - use dot notation instead
Fixes gh-2571
Closes gh-2542
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |