git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 8107; Fix argument handling for $.ajax for multiple method signatues and add...
[jquery.git]
/
src
/
ajax.js
diff --git
a/src/ajax.js
b/src/ajax.js
index
c7d7f2d
..
3158ca4
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-322,9
+322,8
@@
jQuery.extend({
// Main method
ajax: function( url, options ) {
// 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;
}
options = url;
url = undefined;
}