Skip to content

Commit e5ab983

Browse files
committed
bug fix. yee diagram now shows up correctly after save.
1 parent 35352a9 commit e5ab983

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

play/js/main_sandbox.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,12 @@ function main(config){
15771577

15781578
}
15791579

1580+
config.candidatePositions = save().candidatePositions;
15801581

1582+
// reset!
1583+
config.voterPositions = save().voterPositions;
1584+
model.reset();
1585+
setInPosition(); // this is actually the second time we do this. It's a workaround. The yee diagram wasn't working right.
15811586
};
15821587

15831588
Loader.load([

0 commit comments

Comments
 (0)