Permalink
Browse files

Use jquery.parseXML to force reading children of elements

  • Loading branch information...
1 parent 2773970 commit 56e4d08ec111e1fb2fcede347c3e3cb4941c1c02 @onewland onewland committed Apr 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 prototypes/using-aurora/coffeescripts/main.coffee
@@ -41,5 +41,6 @@ head.js('../shared/jquery-1.7.1.js',
load_aurora_classes ->
$("#load_scenario").click ->
xml_text = $("#scenario_text").val()
- window.textarea_scenario = window.aurora.Scenario.from_xml($(xml_text))
+ xml = $.parseXML(xml_text)
+ window.textarea_scenario = window.aurora.Scenario.from_xml($(xml).children())
)

0 comments on commit 56e4d08

Please sign in to comment.