mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
feat: make field initView and initModel more accessible (#7345)
* chore: update loop style to remove any type * feat: make initView protected and initModel public * feat: make image element in image field protected
This commit is contained in:
committed by
GitHub
parent
0ac86c7e68
commit
a0b565724b
@@ -366,8 +366,8 @@ export class Block implements IASTNodeLocation, IDeletable {
|
||||
* change).
|
||||
*/
|
||||
initModel() {
|
||||
for (let i = 0, input; (input = this.inputList[i]); i++) {
|
||||
for (let j = 0, field; (field = input.fieldRow[j]); j++) {
|
||||
for (const input of this.inputList) {
|
||||
for (const field of input.fieldRow) {
|
||||
if (field.initModel) {
|
||||
field.initModel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user