You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by an...@apache.org on 2006/06/05 08:03:09 UTC

svn commit: r411686 - /tapestry/tapestry4/trunk/contrib/src/java/org/apache/tapestry/contrib/ajax/XTile.script

Author: andyhot
Date: Sun Jun  4 23:03:08 2006
New Revision: 411686

URL: http://svn.apache.org/viewvc?rev=411686&view=rev
Log:
Checks before adding call to error function

Modified:
    tapestry/tapestry4/trunk/contrib/src/java/org/apache/tapestry/contrib/ajax/XTile.script

Modified: tapestry/tapestry4/trunk/contrib/src/java/org/apache/tapestry/contrib/ajax/XTile.script
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/contrib/src/java/org/apache/tapestry/contrib/ajax/XTile.script?rev=411686&r1=411685&r2=411686&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/contrib/src/java/org/apache/tapestry/contrib/ajax/XTile.script (original)
+++ tapestry/tapestry4/trunk/contrib/src/java/org/apache/tapestry/contrib/ajax/XTile.script Sun Jun  4 23:03:08 2006
@@ -31,7 +31,9 @@
 	{
 		var requestObject = getRequest();
 		if (!requestObject) {
-			$errorFunctionName();
+			<if expression="errorFunctionName != null">
+			${errorFunctionName}();
+			</if>
 			return;
 		}
 		
@@ -53,7 +55,7 @@
   					${receiveFunctionName}(data);
   				}
   				<if expression="errorFunctionName != null">
-  				else if ("${errorFunctionName}" = "")
+  				else
   					${errorFunctionName}(requestObject);
   				</if>
 			}