(switchValue: number)
| 62 | } |
| 63 | |
| 64 | private _updateView(switchValue: number): void { |
| 65 | this._clearViews(); |
| 66 | |
| 67 | const cases = Object.keys(this._caseViews); |
| 68 | const key = getPluralCategory(switchValue, cases, this._localization); |
| 69 | this._activateView(this._caseViews[key]); |
| 70 | } |
| 71 | |
| 72 | private _clearViews() { |
| 73 | if (this._activeView) this._activeView.destroy(); |
no test coverage detected