Skip to content

Commit c9cf250

Browse files
committed
Ajax: do not quote "throws" option - use dot notation instead
Fixes jquerygh-2571 Closes jquerygh-2542
1 parent e35bdc1 commit c9cf250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function ajaxConvert( s, response, jqXHR, isSuccess ) {
264264
if ( conv !== true ) {
265265

266266
// Unless errors are allowed to bubble, catch and return them
267-
if ( conv && s[ "throws" ] ) { // jscs:ignore requireDotNotation
267+
if ( conv && s.throws ) {
268268
response = conv( response );
269269
} else {
270270
try {

0 commit comments

Comments
 (0)