diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2012-07-30 10:44:47 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2012-07-30 10:44:47 -0400 |
commit | beeab4d126b303b194899adf579d8f43e3fd5e69 (patch) | |
tree | 8c49b1a0b1e499ba8d77a20cf52849c0d7baaad7 /src | |
parent | e07b444dfe87f26f0d6031920026142425505ad6 (diff) | |
download | jquery-beeab4d126b303b194899adf579d8f43e3fd5e69.tar.gz jquery-beeab4d126b303b194899adf579d8f43e3fd5e69.zip |
Quote reserved keyword 'throws' to satisfy yui compressor. Fixes #12158.
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 2 | ||||
-rw-r--r-- | src/manipulation.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ajax.js b/src/ajax.js index 304a41d48..f3887ff44 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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 { diff --git a/src/manipulation.js b/src/manipulation.js index d1dcb3768..3cfc97c3b 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -362,7 +362,7 @@ jQuery.fn.extend({ dataType: "script", async: false, global: false, - throws: true + "throws": true }); } else { jQuery.error("no ajax"); |