You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2010/10/28 00:06:24 UTC
svn commit: r1028124 -
/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Author: hlship
Date: Wed Oct 27 22:06:23 2010
New Revision: 1028124
URL: http://svn.apache.org/viewvc?rev=1028124&view=rev
Log:
TAP5-1328: Supply an empty function as a default successHandler inside Tapestry.ajaxRequest()
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=1028124&r1=1028123&r2=1028124&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js Wed Oct 27 22:06:23 2010
@@ -405,7 +405,7 @@ var Tapestry = {
});
}
- var successHandler = options.onSuccess;
+ var successHandler = options.onSuccess || Prototype.emptyFunction;
var finalOptions = $H( {
onException : Tapestry.ajaxExceptionHandler,