Don't overwrite the options object when redirecting from onmatch with m.route.set, fix #1857
This commit is contained in:
parent
9b947f41f0
commit
a867754d6a
2 changed files with 6 additions and 2 deletions
|
|
@ -39,7 +39,10 @@ module.exports = function($window, redrawService) {
|
|||
redrawService.subscribe(root, run)
|
||||
}
|
||||
route.set = function(path, data, options) {
|
||||
if (lastUpdate != null) options = {replace: true}
|
||||
if (lastUpdate != null) {
|
||||
options = options || {}
|
||||
options.replace = true
|
||||
}
|
||||
lastUpdate = null
|
||||
routeService.setPath(path, data, options)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue