X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax.js;h=b90ca16cbc4076b69b0811afec201b96cc890a9e;hb=ca73ba5668734523c008147ecd9ea037cc841af4;hp=b089f22c29cad7858a7b576854dd62a9e2960fd8;hpb=17b1e407d101c5c7f91db633df3a80cd9b4466ae;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index b089f22..b90ca16 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -489,7 +489,7 @@ jQuery.extend({ 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, "+");