ignore redraw if called without valid controller
This commit is contained in:
parent
55514c3557
commit
1da116bbd3
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ Mithril = m = new function app(window) {
|
||||||
}
|
}
|
||||||
function redraw() {
|
function redraw() {
|
||||||
for (var i = 0; i < roots.length; i++) {
|
for (var i = 0; i < roots.length; i++) {
|
||||||
m.render(roots[i], modules[i].view(controllers[i]))
|
if (controllers[i]) m.render(roots[i], modules[i].view(controllers[i]))
|
||||||
}
|
}
|
||||||
if (computePostRedrawHook) {
|
if (computePostRedrawHook) {
|
||||||
computePostRedrawHook()
|
computePostRedrawHook()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue