From b2a90109bb2fe1f5bf84f7dc35215acc8bb6ca1a Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 7 Jul 2015 00:10:42 +0200 Subject: [PATCH] router: ensure currentView is set --- lib/router.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/router.js b/lib/router.js index 2ac6575..57e90f0 100644 --- a/lib/router.js +++ b/lib/router.js @@ -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)