do not use tabs

This commit is contained in:
popov
2017-01-27 10:23:13 +10:00
committed by Bryan Housel
parent 56dbebd0b6
commit ad06e341ad

View File

@@ -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);