mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Moved to index.js getter and setter of transitType; Removed from fields.js the class created specifically
This commit is contained in:
16
fields.js
16
fields.js
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user