From ad06e341ad6c9f2995235d7439fac6283f0c7916 Mon Sep 17 00:00:00 2001 From: popov Date: Fri, 27 Jan 2017 10:23:13 +1000 Subject: [PATCH] do not use tabs --- modules/modes/drag_node.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/modes/drag_node.js b/modules/modes/drag_node.js index 06d9637a1..e0d9ca771 100644 --- a/modules/modes/drag_node.js +++ b/modules/modes/drag_node.js @@ -79,13 +79,13 @@ export function modeDragNode(context) { function start(entity) { - wasMidpoint = entity.type === 'midpoint'; + wasMidpoint = entity.type === 'midpoint'; var editableIDs = [ entity.id ]; - context.graph().parentWays(entity).forEach(function (parentWay) { + context.graph().parentWays(entity).forEach(function (parentWay) { editableIDs.push(parentWay.id); - editableIDs = editableIDs.concat(_.map(context.graph().parentRelations(parentWay), 'id')); - }); + editableIDs = editableIDs.concat(_.map(context.graph().parentRelations(parentWay), 'id')); + }); isCancelled = d3.event.sourceEvent.shiftKey || !(wasMidpoint || _.some(editableIDs, function (editableID) { return selectedIDs.indexOf(editableID) !== -1; })) || @@ -105,8 +105,8 @@ export function modeDragNode(context) { context.perform(actionNoop()); } - activeIDs = _.map(context.graph().parentWays(entity), 'id'); - activeIDs.push(entity.id); + activeIDs = _.map(context.graph().parentWays(entity), 'id'); + activeIDs.push(entity.id); setActiveElements(); context.enter(mode);