]> 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:01:28 +0000 (03:01 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Mon, 7 Sep 2015 17:03:51 +0000 (20:03 +0300)
Fixes gh-2571
Closes gh-2542

src/ajax.js

index 84ddc304add2090357db539d6cd7a2ad8623e654..32b6a1be266fb1ff104b7ed3eb933ec207541940 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 {