(s)
| 549 | ) |
| 550 | } |
| 551 | toElement(s) { |
| 552 | if (s instanceof this.Element) return s |
| 553 | let o |
| 554 | for (let i = 0; i < this.elementDetection.length; i += 1) { |
| 555 | const a = this.elementDetection[i][0], |
| 556 | u = this.elementDetection[i][1] |
| 557 | if (a(s)) { |
| 558 | o = new u(s) |
| 559 | break |
| 560 | } |
| 561 | } |
| 562 | return o |
| 563 | } |
| 564 | getElementClass(s) { |
| 565 | const o = this.elementMap[s] |
| 566 | return void 0 === o ? this.Element : o |
no test coverage detected