Commit 50bae40f authored by Martin Raifer's avatar Martin Raifer

fix crash when using move operations on "intersection" vertices

_.all doesn't exist anymore in the latest releases of lodash
-> use _.every instead
parent b3492b17
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment