(key: string)
| 33 | } |
| 34 | |
| 35 | delete(key: string): boolean { |
| 36 | if (this.has(key)) { |
| 37 | const name = this.getAttributeNameForKey(key) |
| 38 | this.element.removeAttribute(name) |
| 39 | return true |
| 40 | } else { |
| 41 | return false |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | getAttributeNameForKey(key: string): string { |
| 46 | return `data-${this.identifier}-${dasherize(key)}` |
no test coverage detected