Moved to index.js getter and setter of transitType; Removed from fields.js the class created specifically

This commit is contained in:
alexandercerutti
2018-08-27 00:23:58 +02:00
parent 3c56659697
commit 5b533c8d00
2 changed files with 15 additions and 17 deletions

View File

@@ -57,21 +57,7 @@ class FieldsContainer {
}
}
class StringField {
set transitType(v) {
if (schema.isValid(v, schema.constants.transitType, true)) {
this.fields = v;
} else {
this.fields = this.fields && this.fields !== "" ? this.fields : "";
}
}
get transitType() {
return this.fields;
}
}
module.exports = {
areas: ["primaryFields", "secondaryFields", "auxiliaryFields", "backFields", "headerFields"],
FieldsContainer,
StringField
FieldsContainer
};