Removed unnecessary upper/lowercase, it's all just lowercase now (since $.ajax will uppercase as-needed).

This commit is contained in:
Ben Alman 2010-12-26 22:49:01 +00:00
parent 1830db4226
commit 78a6f5b152

View file

@ -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;