fix: refactor recorder
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
7a896e0fa7
commit
8744e552f2
1 changed files with 7 additions and 4 deletions
11
recorder.js
11
recorder.js
|
@ -20,15 +20,18 @@ class Recorder {
|
|||
this.textBox = textBox;
|
||||
this.id = id;
|
||||
|
||||
this.rendered = -1;
|
||||
this.rendering = false;
|
||||
this.atOnce = false;
|
||||
|
||||
this.states = new Array();
|
||||
|
||||
this.clear();
|
||||
this.initGraph();
|
||||
}
|
||||
|
||||
clear() {
|
||||
this.rendered = -1;
|
||||
this.rendering = false;
|
||||
this.states = new Array();
|
||||
}
|
||||
|
||||
renderAtOnce() {
|
||||
this.atOnce = true;
|
||||
return this;
|
||||
|
|
Loading…
Reference in a new issue