Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Quote reserved keyword 'throws' to satisfy yui compressor. Fixes #12158.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] ) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mathiasbynens
Contributor
|
||
response = conv( response ); | ||
} else { | ||
try { | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -362,7 +362,7 @@ jQuery.fn.extend({ | ||
dataType: "script", | ||
async: false, | ||
global: false, | ||
throws: true | ||
"throws": true | ||
This comment has been minimized.
Sorry, something went wrong.
mathiasbynens
Contributor
|
||
}); | ||
} else { | ||
jQuery.error("no ajax"); | ||
@timmywil, can you leave a comment here please, so that @gibson042 and I don't change it back during one of our compression sweeps?