| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import AbstractNodeView from './AbstractNodeView'; |
||
| 9 | renderNode(attrs) { |
||
| 10 | if (!this.dom) { |
||
| 11 | this.dom = document.createElement('code'); |
||
| 12 | this.contentDOM = document.createElement('span'); |
||
| 13 | this.dom.appendChild(this.contentDOM); |
||
| 14 | } |
||
| 15 | Object.entries(attrs).forEach(([key, value]) => this.dom.setAttribute(key, value)); |
||
| 16 | } |
||
| 17 | } |
||
| 20 |