Skip to content

Commit 492b7a5

Browse files
authored
Merge pull request #364 from atlasan/contrib
missing var
2 parents 8c0a561 + b0302a2 commit 492b7a5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/nodes/logic.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@
9393
logicAnd.title = "AND";
9494
logicAnd.desc = "Return true if all inputs are true";
9595
logicAnd.prototype.onExecute = function() {
96-
ret = true;
96+
var ret = true;
9797
for (inX in this.inputs){
9898
if (!this.getInputData(inX)){
99-
ret = false;
99+
var ret = false;
100100
break;
101101
}
102102
}
@@ -119,7 +119,7 @@
119119
logicOr.title = "OR";
120120
logicOr.desc = "Return true if at least one input is true";
121121
logicOr.prototype.onExecute = function() {
122-
ret = false;
122+
var ret = false;
123123
for (inX in this.inputs){
124124
if (this.getInputData(inX)){
125125
ret = true;
@@ -159,8 +159,8 @@
159159
logicCompare.title = "bool == bool";
160160
logicCompare.desc = "Compare for logical equality";
161161
logicCompare.prototype.onExecute = function() {
162-
last = null;
163-
ret = true;
162+
var last = null;
163+
var ret = true;
164164
for (inX in this.inputs){
165165
if (last === null) last = this.getInputData(inX);
166166
else

0 commit comments

Comments
 (0)