]> source.dussan.org Git - jquery.git/commitdiff
Ajax: do not quote "throws" option - use dot notation instead
authorOleg Gaidarenko <markelog@gmail.com>
Thu, 3 Sep 2015 00:03:12 +0000 (03:03 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Mon, 7 Sep 2015 17:14:59 +0000 (20:14 +0300)
Ref c9cf250daafe806818da1dd207a88a8e94a4ad16
Fixes gh-2571

src/ajax.js

index c8706aae68cddc9ed0a8d620906ab11956c02424..b3cb54d39de2945a701d4378b01b28edf4e87be3 100644 (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 {