Author: jbeard
Date: Sun Jun 27 02:08:20 2010
New Revision: 958311
URL: http://svn.apache.org/viewvc?rev=958311&view=rev
Log:
Small changes to get in-browser compilation to work in IE.
Modified:
commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-140/src/javascript/scxml/cgf/util/base.js
commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-140/src/xslt/backends/js/AbstractStatechartGenerator.xsl
Modified:
commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-140/src/javascript/scxml/cgf/util/base.js
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-140/src/javascript/scxml/cgf/util/base.js?rev=958311&r1=958310&r2=958311&view=diff
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-140/src/javascript/scxml/cgf/util/base.js
(original)
+++
commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-140/src/javascript/scxml/cgf/util/base.js
Sun Jun 27 02:08:20 2010
@@ -31,5 +31,14 @@ function(){
return undefined;
}
}
+
+ if(!Array.some){
+ Array.prototype.some = function(fn){
+ for(var i=0; i < this.length; i++){
+ if(fn(this[i])) return true;
+ }
+ return false;
+ }
+ }
});
Modified:
commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-140/src/xslt/backends/js/AbstractStatechartGenerator.xsl
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-140/src/xslt/backends/js/AbstractStatechartGenerator.xsl?rev=958311&r1=958310&r2=958311&view=diff
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-140/src/xslt/backends/js/AbstractStatechartGenerator.xsl
(original)
+++
commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-140/src/xslt/backends/js/AbstractStatechartGenerator.xsl
Sun Jun 27 02:08:20 2010
@@ -755,7 +755,7 @@
</template>
<template name="genNoSomeArrayPrototypeExtension">
- if(!Array.map){
+ if(!Array.some){
Array.prototype.some = function(fn){
for(var i=0; i < this.length; i++){
if(fn(this[i])) return true;