Skip to content

Commit 684a545

Browse files
authored
Merge pull request #371 from lathanbritz/missing-vars
missing var inX
2 parents bb382a8 + a026a1e commit 684a545

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nodes/logic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
logicAnd.desc = "Return true if all inputs are true";
9595
logicAnd.prototype.onExecute = function() {
9696
var ret = true;
97-
for (inX in this.inputs){
97+
for (var inX in this.inputs){
9898
if (!this.getInputData(inX)){
9999
var ret = false;
100100
break;
@@ -120,7 +120,7 @@
120120
logicOr.desc = "Return true if at least one input is true";
121121
logicOr.prototype.onExecute = function() {
122122
var ret = false;
123-
for (inX in this.inputs){
123+
for (var inX in this.inputs){
124124
if (this.getInputData(inX)){
125125
ret = true;
126126
break;
@@ -161,7 +161,7 @@
161161
logicCompare.prototype.onExecute = function() {
162162
var last = null;
163163
var ret = true;
164-
for (inX in this.inputs){
164+
for (var inX in this.inputs){
165165
if (last === null) last = this.getInputData(inX);
166166
else
167167
if (last != this.getInputData(inX)){

0 commit comments

Comments
 (0)