avoid null ref if mount redraw runs midway route init
This commit is contained in:
parent
809d8921c9
commit
b11f54b919
3 changed files with 44 additions and 44 deletions
|
|
@ -1101,9 +1101,9 @@ var _20 = function($window, redrawService0) {
|
|||
render1()
|
||||
}
|
||||
var render1 = function() {
|
||||
redrawService0.render(root, current.resolver.render(Vnode(current.component, current.params.key, current.params)))
|
||||
if (current.resolver != null) redrawService0.render(root, current.resolver.render(Vnode(current.component, current.params.key, current.params)))
|
||||
}
|
||||
routeService.defineRoutes(routes, function(component, params, path, route) {
|
||||
routeService.defineRoutes(routes, function(component, params, path) {
|
||||
if (component.view) update({}, component, params, path)
|
||||
else {
|
||||
if (component.onmatch) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue