]> source.dussan.org Git - jquery.git/commitdiff
Quote reserved keyword 'throws' to satisfy yui compressor. Fixes #12158.
authorTimmy Willison <timmywillisn@gmail.com>
Mon, 30 Jul 2012 14:44:47 +0000 (10:44 -0400)
committerTimmy Willison <timmywillisn@gmail.com>
Mon, 30 Jul 2012 14:44:47 +0000 (10:44 -0400)
src/ajax.js
src/manipulation.js

index 304a41d4819243a3154127399bab649e7223c72d..f3887ff44a604e3906ea3b1a6592b4794e09e230 100644 (file)
@@ -861,7 +861,7 @@ function ajaxConvert( s, response ) {
                                if ( conv !== true ) {
 
                                        // Unless errors are allowed to bubble, catch and return them
-                                       if ( conv && s.throws ) {
+                                       if ( conv && s["throws"] ) {
                                                response = conv( response );
                                        } else {
                                                try {
index d1dcb3768b5b46dcba4fc7fe7aad022a34e34713..3cfc97c3b9c63e2da29293361e169ba38f84b0c7 100644 (file)
@@ -362,7 +362,7 @@ jQuery.fn.extend({
                                                                dataType: "script",
                                                                async: false,
                                                                global: false,
-                                                               throws: true
+                                                               "throws": true
                                                        });
                                                } else {
                                                        jQuery.error("no ajax");