Side navigation
Ticket #4785: ajax-typefix.diff
File ajax-typefix.diff, 0.7 KB (added by DarkRyder, June 19, 2009 12:20AM UTC)
patch against r6388
--- C:/Documents and Settings/bblank/Desktop/ajax.js Thu Jun 18 16:16:24 2009
+++ C:/Documents and Settings/bblank/Desktop/ajax-typefix.js Thu Jun 18 16:32:48 2009
@@ -97,8 +97,9 @@
jQuery.extend({
get: function( url, data, callback, type ) {
- // shift arguments if data argument was ommited
+ // shift arguments if data argument was omitted
if ( jQuery.isFunction( data ) ) {
+ type = callback;
callback = data;
data = null;
}
@@ -121,7 +122,9 @@
},
post: function( url, data, callback, type ) {
+ // shift arguments if data argument was omitted
if ( jQuery.isFunction( data ) ) {
+ type = callback;
callback = data;
data = {};
}
Download in other formats:
Original Format
File ajax-typefix.diff, 0.7 KB (added by DarkRyder, June 19, 2009 12:20AM UTC)
patch against r6388
--- C:/Documents and Settings/bblank/Desktop/ajax.js Thu Jun 18 16:16:24 2009
+++ C:/Documents and Settings/bblank/Desktop/ajax-typefix.js Thu Jun 18 16:32:48 2009
@@ -97,8 +97,9 @@
jQuery.extend({
get: function( url, data, callback, type ) {
- // shift arguments if data argument was ommited
+ // shift arguments if data argument was omitted
if ( jQuery.isFunction( data ) ) {
+ type = callback;
callback = data;
data = null;
}
@@ -121,7 +122,9 @@
},
post: function( url, data, callback, type ) {
+ // shift arguments if data argument was omitted
if ( jQuery.isFunction( data ) ) {
+ type = callback;
callback = data;
data = {};
}