springy icon indicating copy to clipboard operation
springy copied to clipboard

Useless code ?

Open obiwankennedy opened this issue 7 years ago • 0 comments

I found this code in springy.js (line368).

			var to = this.graph.getEdges(edge.target, edge.source);
			from.forEach(function(e){
				if (existingSpring === false && e.id in this.edgeSprings) {
					existingSpring = this.edgeSprings[e.id];
				}
}, this);

I think it it should iterate from the variable "to" and not on "from".

obiwankennedy avatar Feb 23 '18 09:02 obiwankennedy