X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2FBuilder4%2FEditor.bjs;h=3b938db7b01e1d6005adcb7711a7c1e346ba0c7b;hb=ebba595b965c55282155f36232eb7e3f2daaa015;hp=04542637872e6496c467b82296b0ae7e3eb41c5e;hpb=de22d25bc335fbdbbb7189d406616a0fe97f7efd;p=app.Builder.js diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index 045426378..3b938db7b 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -17,7 +17,7 @@ "# string key" : "\"\"", "* pack" : "add", "xtype" : "Box", - "| void show" : "(JsRender.JsRender file, JsRender.Node? node, string ptype, string key)\n{\n this.file = file; \n this.ptype = \"\";\n this.key = \"\";\n this.node = null;\n\n \n if (file.xtype != \"PlainFile\") {\n \n this.ptype = ptype;\n this.key = key;\n this.node = node;\n string val = \"\";\n // find the text for the node..\n if (ptype == \"listener\") {\n val = node.listeners.get(key);\n \n } else {\n val = node.props.get(key);\n }\n this.view.load(val);\n\n \n } else {\n this.view.load( file.toSource() );\n\n }\n this.key_edit.el.text = key; \n \n}", + "| void show" : "(JsRender.JsRender file, JsRender.Node? node, string ptype, string key)\n{\n this.file = file; \n this.ptype = \"\";\n this.key = \"\";\n this.node = null;\n\n \n if (file.xtype != \"PlainFile\") {\n \n this.ptype = ptype;\n this.key = key;\n this.node = node;\n string val = \"\";\n // find the text for the node..\n if (ptype == \"listener\") {\n val = node.listeners.get(key);\n \n } else {\n val = node.props.get(key);\n }\n this.view.load(val);\n this.key_edit.el.show();\n this.key_edit.el.text = key; \n \n } else {\n this.view.load( file.toSource() );\n this.key_edit.el.hide();\n }\n\n \n}", "# JsRender.JsRender file" : "null", "# bool pos" : false, "string id" : "Editor",