|
3965 | 3965 | var aSource = (type+"").toLowerCase().split(","); |
3966 | 3966 | var aDest = aSlots[i].type=="0"||aSlots[i].type=="*"?"0":aSlots[i].type; |
3967 | 3967 | 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++){ |
3970 | 3970 | if (aSource[sI]=="_event_") aSource[sI] = LiteGraph.EVENT; |
3971 | 3971 | if (aDest[sI]=="_event_") aDest[sI] = LiteGraph.EVENT; |
3972 | 3972 | if (aSource[sI]=="*") aSource[sI] = 0; |
|
3985 | 3985 | var aSource = (type+"").toLowerCase().split(","); |
3986 | 3986 | var aDest = aSlots[i].type=="0"||aSlots[i].type=="*"?"0":aSlots[i].type; |
3987 | 3987 | 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++){ |
3990 | 3990 | if (aSource[sI]=="*") aSource[sI] = 0; |
3991 | 3991 | if (aDest[sI]=="*") aDest[sI] = 0; |
3992 | 3992 | if (aSource[sI] == aDest[dI]) { |
|
4017 | 4017 | if (target_node && target_node.constructor === Number) { |
4018 | 4018 | target_node = this.graph.getNodeById(target_node); |
4019 | 4019 | } |
4020 | | - target_slot = target_node.findInputSlotByType(target_slotType, false, true); |
| 4020 | + var target_slot = target_node.findInputSlotByType(target_slotType, false, true); |
4021 | 4021 | if (target_slot >= 0 && target_slot !== null){ |
4022 | 4022 | //console.debug("CONNbyTYPE type "+target_slotType+" for "+target_slot) |
4023 | 4023 | return this.connect(slot, target_node, target_slot); |
|
4070 | 4070 | if (source_node && source_node.constructor === Number) { |
4071 | 4071 | source_node = this.graph.getNodeById(source_node); |
4072 | 4072 | } |
4073 | | - source_slot = source_node.findOutputSlotByType(source_slotType, false, true); |
| 4073 | + var source_slot = source_node.findOutputSlotByType(source_slotType, false, true); |
4074 | 4074 | if (source_slot >= 0 && source_slot !== null){ |
4075 | 4075 | //console.debug("CONNbyTYPE OUT! type "+source_slotType+" for "+source_slot) |
4076 | 4076 | return source_node.connect(source_slot, this, slot); |
@@ -12265,7 +12265,7 @@ LGraphNode.prototype.executeAction = function(action) |
12265 | 12265 |
|
12266 | 12266 | var aProps = LiteGraph.availableCanvasOptions; |
12267 | 12267 | aProps.sort(); |
12268 | | - for(pI in aProps){ |
| 12268 | + for(var pI in aProps){ |
12269 | 12269 | var pX = aProps[pI]; |
12270 | 12270 | panel.addWidget( "boolean", pX, graphcanvas[pX], {key: pX, on: "True", off: "False"}, fUpdate); |
12271 | 12271 | } |
|
0 commit comments