router: ensure currentView is set

This commit is contained in:
Nils Schneider 2015-07-07 00:10:42 +02:00
parent bc8943abc2
commit b2a90109bb

View File

@ -119,8 +119,10 @@ define(function () {
if (d in views) { if (d in views) {
views[d]() views[d]()
if (running) { if (!currentView)
currentView = d currentView = d
if (running) {
if (currentObject) if (currentObject)
if ("node" in currentObject) if ("node" in currentObject)
gotoNode(currentObject.node) gotoNode(currentObject.node)