Permalink
Browse files

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

Ref c9cf250
Fixes gh-2571
  • Loading branch information...
markelog committed Sep 3, 2015
1 parent 20ddbe4 commit c530661629ac713a3ccab9691773cc6de5e84759
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 c530661

Please sign in to comment.