fix: refactor recorder

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-05-15 22:47:07 +02:00
parent 7a896e0fa7
commit 8744e552f2
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -20,15 +20,18 @@ class Recorder {
this.textBox = textBox; this.textBox = textBox;
this.id = id; this.id = id;
this.rendered = -1;
this.rendering = false;
this.atOnce = false; this.atOnce = false;
this.states = new Array(); this.clear();
this.initGraph(); this.initGraph();
} }
clear() {
this.rendered = -1;
this.rendering = false;
this.states = new Array();
}
renderAtOnce() { renderAtOnce() {
this.atOnce = true; this.atOnce = true;
return this; return this;