fix crash when using move operations on "intersection" vertices

_.all doesn't exist anymore in the latest releases of lodash
-> use _.every instead
This commit is contained in:
Martin Raifer
2016-07-07 13:20:17 +02:00
parent b3492b17a0
commit 50bae40f5c
+1 -1
View File
@@ -22,7 +22,7 @@ export function Move(moveIds, tryDelta, projection, cache) {
if (parents.length < 3) return true;
// Don't move a vertex where >2 ways meet, unless all parentWays are moving too..
var parentsMoving = _.all(parents, function(id) { return cache.moving[id]; });
var parentsMoving = _.every(parents, function(id) { return cache.moving[id]; });
if (!parentsMoving) delete cache.moving[nodeId];
return parentsMoving;