MCPcopy
hub / github.com/MithrilJS/mithril.js / run

Function run

api/mount.js:15–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 }

Callers 1

mount.jsFile · 0.70

Calls 1

VnodeFunction · 0.50

Tested by

no test coverage detected