This commit is contained in:
Leo Horie 2016-10-27 20:38:03 -04:00
parent 86fdcdafaa
commit dd3bb62ee7
2 changed files with 43 additions and 41 deletions

View file

@ -982,6 +982,8 @@ var _18 = function(renderer, pubsub) {
delete root.redraw
return
}
if (component.view == null) throw new Error("m.mount(element, component) expects a component, not a vnode")
var run0 = autoredraw(root, renderer, pubsub, function() {
renderer.render(root, Vnode(component, undefined, undefined, undefined, undefined, undefined))
})