Bug 8107; Fix argument handling for $.ajax for multiple method signatues and add test case
This commit is contained in:
parent
f43572d3b8
commit
31949fa528
2 changed files with 21 additions and 3 deletions
|
@ -322,9 +322,8 @@ jQuery.extend({
|
|||
// Main method
|
||||
ajax: function( url, options ) {
|
||||
|
||||
// If options is not an object,
|
||||
// we simulate pre-1.5 signature
|
||||
if ( typeof options !== "object" ) {
|
||||
// If url is an object, simulate pre-1.5 signature
|
||||
if ( typeof url === "object" ) {
|
||||
options = url;
|
||||
url = undefined;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue