Skip to content

Commit bd6c500

Browse files
committed
Add some missing vars
1 parent 9be2c84 commit bd6c500

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/litegraph.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3965,8 +3965,8 @@
39653965
var aSource = (type+"").toLowerCase().split(",");
39663966
var aDest = aSlots[i].type=="0"||aSlots[i].type=="*"?"0":aSlots[i].type;
39673967
aDest = (aDest+"").toLowerCase().split(",");
3968-
for(sI=0;sI<aSource.length;sI++){
3969-
for(dI=0;dI<aDest.length;dI++){
3968+
for(var sI=0;sI<aSource.length;sI++){
3969+
for(var dI=0;dI<aDest.length;dI++){
39703970
if (aSource[sI]=="_event_") aSource[sI] = LiteGraph.EVENT;
39713971
if (aDest[sI]=="_event_") aDest[sI] = LiteGraph.EVENT;
39723972
if (aSource[sI]=="*") aSource[sI] = 0;
@@ -3985,8 +3985,8 @@
39853985
var aSource = (type+"").toLowerCase().split(",");
39863986
var aDest = aSlots[i].type=="0"||aSlots[i].type=="*"?"0":aSlots[i].type;
39873987
aDest = (aDest+"").toLowerCase().split(",");
3988-
for(sI=0;sI<aSource.length;sI++){
3989-
for(dI=0;dI<aDest.length;dI++){
3988+
for(var sI=0;sI<aSource.length;sI++){
3989+
for(var dI=0;dI<aDest.length;dI++){
39903990
if (aSource[sI]=="*") aSource[sI] = 0;
39913991
if (aDest[sI]=="*") aDest[sI] = 0;
39923992
if (aSource[sI] == aDest[dI]) {
@@ -4017,7 +4017,7 @@
40174017
if (target_node && target_node.constructor === Number) {
40184018
target_node = this.graph.getNodeById(target_node);
40194019
}
4020-
target_slot = target_node.findInputSlotByType(target_slotType, false, true);
4020+
var target_slot = target_node.findInputSlotByType(target_slotType, false, true);
40214021
if (target_slot >= 0 && target_slot !== null){
40224022
//console.debug("CONNbyTYPE type "+target_slotType+" for "+target_slot)
40234023
return this.connect(slot, target_node, target_slot);
@@ -4070,7 +4070,7 @@
40704070
if (source_node && source_node.constructor === Number) {
40714071
source_node = this.graph.getNodeById(source_node);
40724072
}
4073-
source_slot = source_node.findOutputSlotByType(source_slotType, false, true);
4073+
var source_slot = source_node.findOutputSlotByType(source_slotType, false, true);
40744074
if (source_slot >= 0 && source_slot !== null){
40754075
//console.debug("CONNbyTYPE OUT! type "+source_slotType+" for "+source_slot)
40764076
return source_node.connect(source_slot, this, slot);
@@ -12265,7 +12265,7 @@ LGraphNode.prototype.executeAction = function(action)
1226512265

1226612266
var aProps = LiteGraph.availableCanvasOptions;
1226712267
aProps.sort();
12268-
for(pI in aProps){
12268+
for(var pI in aProps){
1226912269
var pX = aProps[pI];
1227012270
panel.addWidget( "boolean", pX, graphcanvas[pX], {key: pX, on: "True", off: "False"}, fUpdate);
1227112271
}

0 commit comments

Comments
 (0)