summaryrefslogtreecommitdiff
path: root/js/codeq/navigation.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/navigation.js')
-rw-r--r--js/codeq/navigation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/codeq/navigation.js b/js/codeq/navigation.js
index da2b04a..62344e5 100644
--- a/js/codeq/navigation.js
+++ b/js/codeq/navigation.js
@@ -91,9 +91,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
name = 'login';//this will cause the following code to transition to the login state instead of the original one given
}
-
var newState = def[name];//if the newState is not the same as the old or if it doesn't exist at all is already checked at this point
if (currState) currState.exit();
+
currState = newState;
currState.enter.apply(currState, Array.prototype.slice.apply(arguments, [1]));
}