diff options
-rw-r--r-- | index.html | 6 | ||||
-rw-r--r-- | src/js/xcos/core/details.js | 1 |
2 files changed, 3 insertions, 4 deletions
@@ -26,7 +26,7 @@ <link rel="stylesheet" href="jquery/jquery-ui.css"> <script src="jquery/jquery-1.8.2.js"></script> <script type="text/javascript" src="src/js/xcos/core/details.js"></script> - <script type="text/javascript" src="json2.js"></script> + :<script type="text/javascript" src="json2.js"></script> <!-- Example code --> <script type="text/javascript"> // Program starts here. Creates a sample graph in the @@ -678,10 +678,10 @@ else if(name == 'ANDBLK'){ var details = doc.createElement('BasicBlock'); details.setAttribute('label', label); - var obj = ANDLOG_f(); + var obj = ANDLOG_f(); // This isn't even the right function! var encoder = new mxCodec(); var result = encoder.encode(obj); - var xml = mxUtils.getXml(result); + var xml = mxUtils.getPrettyXml(result); var blockName = document.createTextNode(xml); details.appendChild(blockName); console.log(details); diff --git a/src/js/xcos/core/details.js b/src/js/xcos/core/details.js index 2a4963b..fbeffda 100644 --- a/src/js/xcos/core/details.js +++ b/src/js/xcos/core/details.js @@ -69,7 +69,6 @@ function scicos_diagram() { // This might also have to be overloaded function scicos_params() { - this.props = new scicos_params(); this.wpar = [600, 450, 0, 0, 600, 450]; this.titlex = 'Untitled'; this.tf = 100000; |