(element)
| 3 | export class SelectionMethod extends HTMLDivElement{ |
| 4 | |
| 5 | constructor(element){ |
| 6 | if(!(element instanceof HTMLDivElement) |
| 7 | || !element.classList.contains('radio-wrapper')){ |
| 8 | throw TypeError('Not a radio-wrapper'); |
| 9 | } |
| 10 | |
| 11 | Object.setPrototypeOf(element, SelectionMethod.prototype); |
| 12 | return Object.assign(element, { |
| 13 | type: 'generic' |
| 14 | }); |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Add a `text` decription to the selection method |
nothing calls this directly
no outgoing calls
no test coverage detected