Bundled output for commit 8c9cc0e1f4 [skip ci]
This commit is contained in:
parent
8c9cc0e1f4
commit
cc8050accd
2 changed files with 40 additions and 41 deletions
|
|
@ -1093,7 +1093,6 @@ m.route = function($window, renderer, pubsub) {
|
|||
current.path = path, current.component = component
|
||||
renderer.render(root, payload.view(Vnode(component, null, args, undefined, undefined, undefined)))
|
||||
}
|
||||
if (typeof payload.onmatch !== "function") payload.onmatch = function() {resolve(current.component)}
|
||||
if (path !== current.path) payload.onmatch(Vnode(payload, null, args, undefined, undefined, undefined), resolve)
|
||||
else resolve(current.component)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue