clean up
This commit is contained in:
parent
e4906706b1
commit
006445960b
1 changed files with 1 additions and 2 deletions
|
|
@ -623,12 +623,11 @@ var m = (function app(window, undefined) {
|
||||||
redrawing = false
|
redrawing = false
|
||||||
};
|
};
|
||||||
m.redraw.strategy = m.prop();
|
m.redraw.strategy = m.prop();
|
||||||
var blank = function() {return ""}
|
|
||||||
function redraw() {
|
function redraw() {
|
||||||
for (var i = 0, root; root = roots[i]; i++) {
|
for (var i = 0, root; root = roots[i]; i++) {
|
||||||
if (controllers[i]) {
|
if (controllers[i]) {
|
||||||
var args = components[i].controller && components[i].controller.$$args ? [controllers[i]].concat(components[i].controller.$$args) : [controllers[i]]
|
var args = components[i].controller && components[i].controller.$$args ? [controllers[i]].concat(components[i].controller.$$args) : [controllers[i]]
|
||||||
m.render(root, components[i].view ? components[i].view(controllers[i], args) : blank())
|
m.render(root, components[i].view ? components[i].view(controllers[i], args) : "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//after rendering within a routed context, we need to scroll back to the top, and fetch the document title for history.pushState
|
//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