Fixed context when calling a module view during redraw.
This commit is contained in:
parent
05831d98c7
commit
5080db017f
1 changed files with 1 additions and 1 deletions
|
|
@ -542,7 +542,7 @@ var m = (function app(window, undefined) {
|
|||
var forceRedraw = m.redraw.strategy() === "all";
|
||||
for (var i = 0, root; root = roots[i]; i++) {
|
||||
if (controllers[i]) {
|
||||
m.render(root, (modules[i].view || blank)(controllers[i]), forceRedraw)
|
||||
m.render(root, modules[i].view ? modules[i].view(controllers[i]) : blank(), forceRedraw)
|
||||
}
|
||||
}
|
||||
//after rendering within a routed context, we need to scroll back to the top, and fetch the document title for history.pushState
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue