diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | desktop/sources/scripts/programs/a.js | 4 |
2 files changed, 2 insertions, 4 deletions
@@ -5,7 +5,7 @@ Not much is known about the machine, but it seems to be reacting to our presence ## Programs ### Add `A` -This function expects 2 numerical values, adds them up to generate an index, and create the function corresponding to this index, on **bang**. +This function expects 2 numerical values, adds them up to generate an index, and create the function corresponding to this index. ### Bang `B` The **bang** function is used to trigger various functions, only lasts one cycle. diff --git a/desktop/sources/scripts/programs/a.js b/desktop/sources/scripts/programs/a.js index ac5b49e..04ee6f7 100644 --- a/desktop/sources/scripts/programs/a.js +++ b/desktop/sources/scripts/programs/a.js @@ -4,12 +4,10 @@ function program_A(x,y) this.name = "add" this.glyph = "a"; - this.ports = [{x:-1,y:0},{x:1,y:0},{x:0,y:2,output:true},{x:0,y:0,bang:true}]; + this.ports = [{x:-1,y:0},{x:1,y:0},{x:0,y:2,output:true}]; this.operation = function() { - if(!this.bang()){ return; } - var left = !this.left() ? "0" : this.left().glyph var right = !this.right() ? "0" : this.right().glyph |