(i)
| 2944 | return { ...this.state, mode: this.state.modes[this.state.currentModeIndex] }; |
| 2945 | } |
| 2946 | setState(i) { |
| 2947 | const t = { ...this.state }; |
| 2948 | i.mode && (i.currentModeIndex = this.state.modes.indexOf(i.mode)), this.state = { ...this.state, ...i }, this._notifyStateChange(t, this.state), this.container && this.render(this.container); |
| 2949 | } |
| 2950 | onStateChange(i) { |
| 2951 | return this.onStateChangeHandlers.push(i), () => { |
| 2952 | const t = this.onStateChangeHandlers.indexOf(i); |
no test coverage detected