"\t// since we can't add listeners?!?!?",
"\t// only check props.",
"\t// check if property already exists in node.\t",
+ "\tvar prop = _this.prop;",
"\tif (_this.node.props.has_key(prop.to_index_key())) {",
"\t\t_this.error.setError(\"Property already exists\");",
"\t\treturn;\t",
"\t}",
"\t// add it, ",
- "\tvar prop = _this.prop;",
+ "\t",
"\t_this.node.set_prop(prop);",
"\t_this.is_new = false;\t",
"\t_this.mainwindow.windowstate.left_props.reload();",
// since we can't add listeners?!?!?
// only check props.
// check if property already exists in node.
+ var prop = _this.prop;
if (_this.node.props.has_key(prop.to_index_key())) {
_this.error.setError("Property already exists");
return;
}
// add it,
- var prop = _this.prop;
+
_this.node.set_prop(prop);
_this.is_new = false;
_this.mainwindow.windowstate.left_props.reload();