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) {
views[d]()
if (running) {
if (!currentView)
currentView = d
if (running) {
if (currentObject)
if ("node" in currentObject)
gotoNode(currentObject.node)