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