X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=47e66352f5886b0c6e41fa0e5302b8b65759ee89;hb=cf8c1249d1efbdaf4f4dd8d1a36bb803335f4ee8;hp=9696bb3e77d4c3b3729013a14c6b2d3f48c26dfd;hpb=7638fc58354e295f96a2d948adcb1ce1c2da60b3;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 9696bb3..47e6635 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 = {}; }