Removed unnecessary upper/lowercase, it's all just lowercase now (since $.ajax will uppercase as-needed).
This commit is contained in:
parent
1830db4226
commit
78a6f5b152
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue