mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user