X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=18ea203d0e5bf80df494484b1c8df13b70776174;hb=78a6f5b152f40739769169c76726cead5cb7206b;hp=bac0ab18267aee00c65a5a105337fc2ae823a0f2;hpb=1830db422628d1556377621612b401bac5afa40e;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index bac0ab1..18ea203 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -113,8 +113,8 @@ jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".sp }; }); -jQuery.each( [ "GET", "POST" ], function( i, method ) { - jQuery[ method.toLowerCase() ] = function( url, data, callback, type ) { +jQuery.each( [ "get", "post" ], function( i, method ) { + jQuery[ method ] = function( url, data, callback, type ) { // shift arguments if data argument was omited if ( jQuery.isFunction( data ) ) { type = type || callback;