From ace0fd20d11088c85fd7d395d1a91af910f91ac3 Mon Sep 17 00:00:00 2001 From: MatCat Date: Wed, 3 Mar 2021 18:51:57 -0800 Subject: [PATCH] 0.3.5: Bug fix with connections to multi-output elements --- README.md | 4 ++++ js/elements.js | 2 +- js/main.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24e739f..b67792d 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ To be decided, but at this moment this code is open source and free to use for n ## Changelog +### 0.3.5 + +* Fixed a bug where newly linked objects weren't being polled to the proper output + ### 0.3.4 * Added Flip-Flops! There are 4 to choose from, JK, SR, D, and T! diff --git a/js/elements.js b/js/elements.js index c9d25ab..020f28c 100644 --- a/js/elements.js +++ b/js/elements.js @@ -250,7 +250,7 @@ class Element extends CanvasTools { let newConnection = new ElementConnection(container,element,input,output); this.OutputConnections.push(newConnection); this.LogicEngine.RecursionCount = 0; - element.setInput(input,this.getOutput()); + element.setInput(input,this.getOutput(output)); return newConnection; } diff --git a/js/main.js b/js/main.js index 1b2550a..57fff11 100644 --- a/js/main.js +++ b/js/main.js @@ -2,7 +2,7 @@ MatCat BrowserLogic Simulator */ -let Version = "0.3.4"; +let Version = "0.3.5"; let spanVersion = document.getElementById("version"); spanVersion.innerText = Version; // get the canvas and get the engine object going