Bundled output for commit 8c9cc0e1f4 [skip ci]

This commit is contained in:
Gandalf-the-Bot 2016-08-17 13:11:27 +00:00
parent 8c9cc0e1f4
commit cc8050accd
2 changed files with 40 additions and 41 deletions

View file

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