Skip to content
Permalink
Browse files
Fixed doing $.post() without any params.
  • Loading branch information
jeresig committed Jan 22, 2007
1 parent 34c0bed commit c39d1a21c61982baf511f6455047f7f055b228da
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/ajax/ajax.js
@@ -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,

0 comments on commit c39d1a2

Please sign in to comment.