MCPcopy
hub / github.com/RaspberryPiFoundation/blockly / initField

Method initField

packages/blockly/core/inputs/input.ts:332–338  ·  view source on GitHub ↗

Initializes the given field.

(field: Field)

Source from the content-addressed store, hash-verified

330
331 /** Initializes the given field. */
332 private initField(field: Field) {
333 if (this.sourceBlock.rendered) {
334 field.init();
335 } else {
336 field.initModel();
337 }
338 }
339
340 /**
341 * Sever all links to this input.

Callers 1

insertFieldAtMethod · 0.95

Calls 2

initMethod · 0.65
initModelMethod · 0.45

Tested by

no test coverage detected