i have a problem, my Java Script runs out of memory and i dont know why. Memory usage jumps to almost 2gB when I start the code. Currently if i comment out this part of my code it works fine:
var way = [];
for(var x = 0;x<=way1.length > way2.length?way1.length:way2.length;x++){
way.push(way1[x]);
way.push(way2[x]);
}
otherwise it will crashe.
Thanks for help.