Commit 248bcfdc authored by Romain Loth's avatar Romain Loth

clear system states array on new graph

parent 5505237d
......@@ -581,8 +581,6 @@ function getNeighbors(sourceNids, relKey) {
// POSS: rewrite using .hidden instead of add/remove
function changeLevel(optionalTgtState) {
console.log('got optionalTgtState', optionalTgtState)
// show waiting cursor
TW.gui.elHtml.classList.add('waiting');
......
......@@ -107,6 +107,9 @@ TW.resetGraph = function() {
TW.gui.checkBox=false
TW.gui.lastFilters = {}
// forget the states
TW.states = [TW.initialSystemState]
// remaining global vars will be reset by new graph mainStartGraph
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment