commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbe...@apache.org
Subject svn commit: r1041742 - /commons/sandbox/gsoc/2010/scxml-js/trunk/src/xslt/backends/js/AbstractStatechartGenerator.xsl
Date Fri, 03 Dec 2010 09:16:28 GMT
Author: jbeard
Date: Fri Dec  3 09:16:28 2010
New Revision: 1041742

URL: http://svn.apache.org/viewvc?rev=1041742&view=rev
Log:
Fixed bug where destroyed state would not be honored if called using synchronous API.

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=1041742&r1=1041741&r2=1041742&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
Fri Dec  3 09:16:28 2010
@@ -649,7 +649,7 @@
 		<param name="event"/>
 
 		this["<value-of select="$event/c:name"/>"] = function(data){
-			if(isInStableState){
+			if(isInStableState &amp;&amp; !destroyed){
 				runToCompletion(
 				//TODO: conditionally wrap in quotes for enumerated pattern
 					<call-template name="genExternalTriggerDispatcherRunToCompletionEventValue">



Mime
View raw message