(newState)
| 373 | // ---- State management -------------------------------------------------- |
| 374 | |
| 375 | _setState(newState) { |
| 376 | if (newState === this._state) return; |
| 377 | this._state = newState; |
| 378 | for (const cb of this._stateListeners) { |
| 379 | try { cb(newState); } catch (e) { /* ignore */ } |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | /** |
| 384 | * Update the dataSource label and notify state listeners so the UI can |
no outgoing calls
no test coverage detected