[TASK] CGL - Optimize returns and unnecessary math

This commit is contained in:
Xaver Maierhofer 2016-05-22 23:32:05 +02:00 committed by Milan Pässler
commit c9458ffcae
3 changed files with 5 additions and 11 deletions

View file

@ -135,7 +135,7 @@ define(["map/clientlayer", "map/labelslayer",
return "distance" in d && d.type !== "VPN";
});
var lines = graph.map(function (d) {
return graph.map(function (d) {
var opts = {
color: d.type === "Kabel" ? "#50B0F0" : linkScale(d.tq).hex(),
weight: 4,
@ -156,8 +156,6 @@ define(["map/clientlayer", "map/labelslayer",
return line;
});
return lines;
}
var iconOnline = {