* Get or create the reactive state object for any object. * Assigns a stable unique ID on first access. * @param {Object} obj - DOM element or plain JS object * @returns {{ id: string, subscriptions: Map|null }}
(obj)
| 196 | * @returns {{ id: string, subscriptions: Map|null }} |
| 197 | */ |
| 198 | _getObjectState(obj) { |
| 199 | var state = this._objectState.get(obj); |
| 200 | if (!state) { |
| 201 | this._objectState.set(obj, state = { |
| 202 | id: String(++this._nextId), |
| 203 | subscriptions: null, |
| 204 | }); |
| 205 | } |
| 206 | return state; |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Whether an effect is currently evaluating its expression(). |
no test coverage detected