Permalink
Browse files

Fixed issue #5 where top-level scripts would be ignored in IE.

  • Loading branch information...
1 parent aab00b4 commit f0549be7e29ce161c0846de9e68c9bf03a52f29e @jbeard4 committed Dec 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/core/util/annotate-scxml-json.js
@@ -85,7 +85,7 @@ var transform = exports.transform = function(scxmlDoc) {
};
function genRootScripts(root) {
- return pm.platform.dom.getChildren(root).filter(function(c){return pm.platform.dom.localName(c) === "script";}).map(function(c){return c.textContent;});
+ return pm.platform.dom.getChildren(root).filter(function(c){return pm.platform.dom.localName(c) === "script";}).map(function(c){return pm.platform.dom.textContent(c);});
}
function genEventsEnum(uniqueEvents) {

0 comments on commit f0549be

Please sign in to comment.