Fix a wrong statement

This commit is contained in:
HirokiUchikawa 2018-06-06 18:46:32 +09:00
parent 7aced85a31
commit f44487338d
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ Memory.prototype.clean = function(activeNodes){
for(var id in this.data){
if(this.data.hasOwnProperty(id) && id !== "global"){
var idParts = id.split(":");
if(!activeNodes.indexOf(idParts[0])){
if(activeNodes.indexOf(idParts[0]) === -1){
delete this.data[id];
}
}