(name: string, value: string)
| 73 | } |
| 74 | |
| 75 | setAttribute(name: string, value: string) { |
| 76 | const old = super.getAttribute(name), |
| 77 | names: string[] = this.constructor['observedAttributes']; |
| 78 | |
| 79 | super.setAttribute(name, value); |
| 80 | |
| 81 | if (names.includes(name)) this.attributeChangedCallback(name, old, value); |
| 82 | } |
| 83 | |
| 84 | attributeChangedCallback(name: string, old: string, value: string) { |
| 85 | this[toCamelCase(name)] = parseJSON(value); |
no test coverage detected