0.3.5: Bug fix with connections to multi-output elements

This commit is contained in:
MatCat 2021-03-03 18:51:57 -08:00
parent cb852d5d28
commit ace0fd20d1
3 changed files with 6 additions and 2 deletions

View File

@ -12,6 +12,10 @@ To be decided, but at this moment this code is open source and free to use for n
## Changelog ## Changelog
### 0.3.5
* Fixed a bug where newly linked objects weren't being polled to the proper output
### 0.3.4 ### 0.3.4
* Added Flip-Flops! There are 4 to choose from, JK, SR, D, and T! * Added Flip-Flops! There are 4 to choose from, JK, SR, D, and T!

View File

@ -250,7 +250,7 @@ class Element extends CanvasTools {
let newConnection = new ElementConnection(container,element,input,output); let newConnection = new ElementConnection(container,element,input,output);
this.OutputConnections.push(newConnection); this.OutputConnections.push(newConnection);
this.LogicEngine.RecursionCount = 0; this.LogicEngine.RecursionCount = 0;
element.setInput(input,this.getOutput()); element.setInput(input,this.getOutput(output));
return newConnection; return newConnection;
} }

View File

@ -2,7 +2,7 @@
MatCat BrowserLogic Simulator MatCat BrowserLogic Simulator
*/ */
let Version = "0.3.4"; let Version = "0.3.5";
let spanVersion = document.getElementById("version"); let spanVersion = document.getElementById("version");
spanVersion.innerText = Version; spanVersion.innerText = Version;
// get the canvas and get the engine object going // get the canvas and get the engine object going