router: another bugfix
This commit is contained in:
parent
8bbad8e1d5
commit
2b3605a46e
|
@ -119,21 +119,20 @@ define(function () {
|
|||
if (d in views) {
|
||||
views[d]()
|
||||
|
||||
if (!currentView)
|
||||
if (!currentView || running)
|
||||
currentView = d
|
||||
|
||||
if (running) {
|
||||
if (currentObject)
|
||||
if (currentObject) {
|
||||
if ("node" in currentObject)
|
||||
gotoNode(currentObject.node)
|
||||
else if ("link" in currentObject)
|
||||
gotoLink(currentObject.link)
|
||||
else
|
||||
targets.forEach( function (t) {
|
||||
t.resetView()
|
||||
})
|
||||
|
||||
saveState()
|
||||
} else
|
||||
console.log("reset view")
|
||||
resetView()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue