()
| 13 | if (component.view == null && typeof component !== "function") throw new Error("m.mount(element, component) expects a component, not a vnode") |
| 14 | |
| 15 | var run = function() { |
| 16 | redrawService.render(root, Vnode(component)) |
| 17 | } |
| 18 | redrawService.subscribe(root, run) |
| 19 | run() |
| 20 | } |