mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fixed doing $.post() without any params.
This commit is contained in:
parent
34c0bed54a
commit
c39d1a21c6
@ -391,6 +391,11 @@ jQuery.extend({
|
||||
* @cat Ajax
|
||||
*/
|
||||
post: function( url, data, callback, type ) {
|
||||
if ( jQuery.isFunction( data ) ) {
|
||||
callback = data;
|
||||
data = {};
|
||||
}
|
||||
|
||||
return jQuery.ajax({
|
||||
type: "POST",
|
||||
url: url,
|
||||
|
Loading…
Reference in New Issue
Block a user