Skip to main content

Bug Tracker

Side navigation

Ticket #2806: dynamic-patch.diff


File dynamic-patch.diff, 0.5 KB (added by joern, May 06, 2008 08:09PM UTC)

patch

Index: src/ajax.js
===================================================================
--- src/ajax.js	(revision 5458)
+++ src/ajax.js	(working copy)
@@ -489,7 +489,7 @@
 						s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) );
 					});
 				else
-					s.push( encodeURIComponent(j) + "=" + encodeURIComponent( a[j] ) );
+					s.push( encodeURIComponent(j) + "=" + encodeURIComponent( jQuery.isFunction(a[j]) ? a[j]() : a[j] ) );
 
 		// Return the resulting serialization
 		return s.join("&").replace(/%20/g, "+");

Download in other formats:

Original Format