diff options
author | Ariel Flesler <aflesler@gmail.com> | 2009-09-15 16:45:37 +0000 |
---|---|---|
committer | Ariel Flesler <aflesler@gmail.com> | 2009-09-15 16:45:37 +0000 |
commit | cf8c1249d1efbdaf4f4dd8d1a36bb803335f4ee8 (patch) | |
tree | 827710c7e88d4d7938e93352d7b07337f0a9ea24 /src/ajax.js | |
parent | 7638fc58354e295f96a2d948adcb1ce1c2da60b3 (diff) | |
download | jquery-cf8c1249d1efbdaf4f4dd8d1a36bb803335f4ee8.tar.gz jquery-cf8c1249d1efbdaf4f4dd8d1a36bb803335f4ee8.zip |
jquery ajax: addition for #2452. Wasn't working correctly in some cases.
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ajax.js b/src/ajax.js index 9696bb3e7..47e66352f 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -113,7 +113,7 @@ jQuery.extend({ get: function( url, data, callback, type ) { // shift arguments if data argument was omited if ( jQuery.isFunction( data ) ) { - type = callback; + type = type || callback; callback = data; data = null; } @@ -138,7 +138,7 @@ jQuery.extend({ post: function( url, data, callback, type ) { // shift arguments if data argument was omited if ( jQuery.isFunction( data ) ) { - type = callback; + type = type || callback; callback = data; data = {}; } |