Remove the state of widgets that are not contained in `activeIds`.
(activeIds: Set<string>)
| 168 | |
| 169 | /** Remove the state of widgets that are not contained in `activeIds`. */ |
| 170 | public removeInactive(activeIds: Set<string>): void { |
| 171 | this.widgetStates.forEach((_value, key) => { |
| 172 | if (!activeIds.has(key)) { |
| 173 | this.widgetStates.delete(key) |
| 174 | } |
| 175 | }) |
| 176 | } |
| 177 | |
| 178 | /** Remove all widget states. */ |
| 179 | public clear(): void { |
no test coverage detected