gfse: fix a bug caused by sharing when copying a linearization function in the row view

Functional programming is easier than imperative programming!
This commit is contained in:
hallgren
2012-10-03 13:54:35 +00:00
parent 3582ae6e08
commit ec9dc23f46

View File

@@ -1486,7 +1486,9 @@ function draw_row(g) {
for(var i in missing) {
var ci=missing[i]
var conc=g.concretes[ci]
conc.lins.push(lin)
// This is not functional programming, so copy the lin first...
var lin2=JSON.parse(JSON.stringify(lin))
conc.lins.push(lin2)
timestamp(conc);
}
reload_grammar(g)