Permalink
Browse files

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

Fixes gh-2571
Closes gh-2542
  • Loading branch information...
markelog committed Sep 3, 2015
1 parent e35bdc1 commit c9cf250daafe806818da1dd207a88a8e94a4ad16
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax.js
View
@@ -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 {

0 comments on commit c9cf250

Please sign in to comment.