diff --git a/README.md b/README.md index 7f05bfc..4563ab7 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,9 @@ To be decided, but at this moment this code is open source and free to use for n ## Changelog +### 0.2.3 +* Fixed bug where timer isn't removed when clock is deleted + ### 0.2.2 * Fixed freaking out inputs on some input values * Quadratic CURVES! Links now look MUCH nicer :) diff --git a/js/logicengine.js b/js/logicengine.js index 9b8d746..9882dc6 100644 --- a/js/logicengine.js +++ b/js/logicengine.js @@ -408,6 +408,11 @@ class ClockElement extends Element { } } + Delete() { + super.Delete(); + this.LogicEngine.Scheduler.deleteTask(this.Task); + } + getOutput() { return this.Output; } diff --git a/js/main.js b/js/main.js index 43df6bb..a124a17 100644 --- a/js/main.js +++ b/js/main.js @@ -2,7 +2,7 @@ MatCat BrowserLogic Simulator */ -let Version = "0.2.2"; +let Version = "0.2.3"; let spanVersion = document.getElementById("version"); spanVersion.innerText = Version; // get the canvas and get the engine object going