Commit c39d1a21 authored by John Resig's avatar John Resig

Fixed doing $.post() without any params.

parent 34c0bed5
...@@ -391,6 +391,11 @@ jQuery.extend({ ...@@ -391,6 +391,11 @@ jQuery.extend({
* @cat Ajax * @cat Ajax
*/ */
post: function( url, data, callback, type ) { post: function( url, data, callback, type ) {
if ( jQuery.isFunction( data ) ) {
callback = data;
data = {};
}
return jQuery.ajax({ return jQuery.ajax({
type: "POST", type: "POST",
url: url, url: url,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment