diff --git a/recorder.js b/recorder.js index ff71bb5..28e26a7 100644 --- a/recorder.js +++ b/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;