avoid null ref if mount redraw runs midway route init

This commit is contained in:
Leo Horie 2016-12-05 11:35:50 -05:00
parent 809d8921c9
commit b11f54b919
3 changed files with 44 additions and 44 deletions

View file

@ -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) {