lint docs

This commit is contained in:
Leo Horie 2016-08-17 09:09:45 -04:00
parent 7718ef4c81
commit 8c9cc0e1f4
4 changed files with 17 additions and 15 deletions

View file

@ -16,7 +16,6 @@ module.exports = 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)
}