private recreateResolved()

in src/state/element-state-record.ts [66:88]


  private recreateResolved() {
    if (this.records.length === 0) {
      this.resolved = undefined;
      return;
    }
    if (this.records.length === 1) {
      this.resolved = this.records[0].handler;
      return;
    }

    const resolved = { ...this.records[0].handler };
    for (let i = 1; i < this.records.length; i++) {
      Object.assign(resolved, this.records[i].handler);
    }

    for (const call of functionCalls) {
      if (resolved[call]) {
        resolved[call] = this.callForEach(call);
      }
    }

    this.resolved = resolved;
  }