()
| 24 | function noop() {} |
| 25 | |
| 26 | function init() { |
| 27 | const rootEl = document.querySelector('tree')!; |
| 28 | rootEl.textContent = ''; |
| 29 | tree = new TreeComponent(rootEl); |
| 30 | |
| 31 | initTreeUtils(); |
| 32 | |
| 33 | bindAction('#destroyDom', destroyDom); |
| 34 | bindAction('#createDom', createDom); |
| 35 | |
| 36 | bindAction('#updateDomProfile', profile(createDom, noop, 'update')); |
| 37 | bindAction('#createDomProfile', profile(createDom, destroyDom, 'create')); |
| 38 | } |
| 39 | |
| 40 | init(); |
no test coverage detected
searching dependent graphs…