Author: jbeard
Date: Sun Nov 7 09:39:04 2010
New Revision: 1032244
URL: http://svn.apache.org/viewvc?rev=1032244&view=rev
Log:
Fixed but with previous commit that was breaking unit tests.
Modified:
commons/sandbox/gsoc/2010/scxml-js/trunk/src/xslt/backends/js/AbstractStatechartGenerator.xsl
Modified:
commons/sandbox/gsoc/2010/scxml-js/trunk/src/xslt/backends/js/AbstractStatechartGenerator.xsl
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/src/xslt/backends/js/AbstractStatechartGenerator.xsl?rev=1032244&r1=1032243&r2=1032244&view=diff
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-js/trunk/src/xslt/backends/js/AbstractStatechartGenerator.xsl
(original)
+++
commons/sandbox/gsoc/2010/scxml-js/trunk/src/xslt/backends/js/AbstractStatechartGenerator.xsl
Sun Nov 7 09:39:04 2010
@@ -318,17 +318,20 @@
<template name="genDelayedSendTimeoutIdVariables">
<param name="delayedSends"/>
- var <for-each select="$delayedSends">
- <value-of select="@id"/><value-of
select="$delayedSendBaseVariableName"/>
- <choose>
- <when test="position() = last()">
- ;
- </when>
- <otherwise>
- ,
- </otherwise>
- </choose>
- </for-each>
+ <if test="$delayedSends">
+ var <for-each select="$delayedSends">
+ <value-of select="@id"/><value-of
select="$delayedSendBaseVariableName"/>
+ <choose>
+ <when test="position() = last()">
+ ;
+ </when>
+ <otherwise>
+ ,
+ </otherwise>
+ </choose>
+ </for-each>
+ </if>
+
</template>
<template name="genEventRegularExpressions">