MCPcopy Create free account
hub / github.com/cryptii/cryptii / constructor

Method constructor

src/Form.js:17–25  ·  view source on GitHub ↗

* Constructor * @param {Field[]|object[]} fieldsOrSpecs Array of field instances or * spec objects * @param {Factory} fieldFactory Factory

(fieldsOrSpecs = [], fieldFactory = null)

Source from the content-addressed store, hash-verified

15 * @param {Factory} fieldFactory Factory
16 */
17 constructor (fieldsOrSpecs = [], fieldFactory = null) {
18 super()
19 this._viewPrototype = FormView
20 this._delegate = null
21
22 this._fieldFactory = fieldFactory
23 this._fields = []
24 this.addFields(fieldsOrSpecs)
25 }
26
27 /**
28 * Returns a shallow copy of the current form fields.

Callers

nothing calls this directly

Calls 1

addFieldsMethod · 0.95

Tested by

no test coverage detected