Side navigation
Ticket #4767: jquery-4767.patch
File jquery-4767.patch, 0.5 KB (added by vrana, June 15, 2009 02:38PM UTC)
Index: ajax.js
===================================================================
--- ajax.js (revision 6389)
+++ ajax.js (working copy)
@@ -99,6 +99,7 @@
get: function( url, data, callback, type ) {
// shift arguments if data argument was ommited
if ( jQuery.isFunction( data ) ) {
+ type = callback;
callback = data;
data = null;
}
@@ -122,6 +123,7 @@
post: function( url, data, callback, type ) {
if ( jQuery.isFunction( data ) ) {
+ type = callback;
callback = data;
data = {};
}
Download in other formats:
Original Format
File jquery-4767.patch, 0.5 KB (added by vrana, June 15, 2009 02:38PM UTC)
Index: ajax.js
===================================================================
--- ajax.js (revision 6389)
+++ ajax.js (working copy)
@@ -99,6 +99,7 @@
get: function( url, data, callback, type ) {
// shift arguments if data argument was ommited
if ( jQuery.isFunction( data ) ) {
+ type = callback;
callback = data;
data = null;
}
@@ -122,6 +123,7 @@
post: function( url, data, callback, type ) {
if ( jQuery.isFunction( data ) ) {
+ type = callback;
callback = data;
data = {};
}