()
| 53 | }; |
| 54 | |
| 55 | #boot() { |
| 56 | const names: string[] = this.constructor['observedAttributes'] || [], |
| 57 | reactions = reactionMap.get(this) || []; |
| 58 | |
| 59 | this.disposers.push( |
| 60 | ...names.map(name => autorun(() => this.syncPropAttr(name))), |
| 61 | ...reactions.map(({ expression, effect }) => |
| 62 | watch(reaction => expression(this, reaction), effect.bind(this)) |
| 63 | ) |
| 64 | ); |
| 65 | } |
| 66 | |
| 67 | disconnectedCallback() { |
| 68 | for (const disposer of this.disposers) disposer(); |
no test coverage detected