From 50bae40f5c92f7b6eb6fe2ecf392b4f6b31e299d Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Thu, 7 Jul 2016 13:20:17 +0200 Subject: [PATCH] fix crash when using move operations on "intersection" vertices _.all doesn't exist anymore in the latest releases of lodash -> use _.every instead --- modules/actions/move.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/actions/move.js b/modules/actions/move.js index cce3d70fd..f9bd9e77f 100644 --- a/modules/actions/move.js +++ b/modules/actions/move.js @@ -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;