Handle resolving with a component

This commit is contained in:
Pat Cavit 2016-12-05 17:09:02 -08:00
parent 22e9c3bb6f
commit adabc37fd7

View file

@ -25,7 +25,7 @@ module.exports = function($window, redrawService) {
if (waiting != null) update(payload, component, params, path)
else {
waiting = Promise.resolve(payload.onmatch(params, path))
.then(function() {update(payload, component, params, path)})
.then(function(comp) {update(payload, comp != null ? comp : component, params, path)})
}
}
else update(payload, "div", params, path)