Author: jbeard
Date: Thu Mar 17 16:16:47 2011
New Revision: 1082554

URL: http://svn.apache.org/viewvc?rev=1082554&view=rev
Log:
Parameterized name of statechart construtor function base name.

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=1082554&r1=1082553&r2=1082554&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
 Thu Mar 17 16:16:47 2011
@@ -24,6 +24,7 @@
        <param name="log" select="false()"/>
        <param name="genListenerHooks" select="true()"/>
        <param name="noIndexOf" select="false()"/>
+       <param name="classBaseName" select="'StatechartExecutionContext'"/>
 
        <!-- these variables get overridden by subclasses -->
        <variable name="enumeratedEventDispatchInvocation"/>
@@ -212,7 +213,7 @@
 
        <template match="/s:scxml">
 
-               function <value-of select="@name"/>StatechartExecutionContext(){
+               function <value-of select="@name"/><value-of 
select="$classBaseName"/>(){
 
                                var self = this;        //used in the rare 
occasions we call public functions from inside this class
 


Reply via email to