"\t\t// error should already be showing?",
"\t\treturn;",
"\t}",
+ "\tthis.updateProp();",
+ "\t",
+ "\t// since we can't add listeners?!?!?",
+ "\t// only check props.",
+ "\t",
+ "\tif (this.node.props.has_key(prop.to_index_key())) {",
+ "\t\t_this.error.setError(\"Property already exists\");",
+ "\t\treturn;",
+ "\t",
+ "\t}",
+ "\tthis.node.set_prop(prop);",
+ "\tthis.is_new = false;",
+ "\t",
"\t",
"\t",
"\t// check if property already exists in node.",
// error should already be showing?
return;
}
+ this.updateProp();
+
+ // since we can't add listeners?!?!?
+ // only check props.
+
+ if (this.node.props.has_key(prop.to_index_key())) {
+ _this.error.setError("Property already exists");
+ return;
+
+ }
+ this.node.set_prop(prop);
+ this.is_new = false;
+
// check if property already exists in node.