Add method to delete properties

This commit is contained in:
JannisX11 2020-08-30 13:42:03 +02:00
parent 27b399621d
commit 5cec293c90

View File

@ -37,6 +37,9 @@ class Property {
if (options.label) this.label = options.label;
if (options.options) this.options = options.options;
}
delete() {
delete this.class.properties[this.name];
}
merge(instance, data) {
if (data[this.name] == undefined || !Condition(this.condition)) return;