diff --git a/index.html b/index.html index 387f4a0e1..deadb5add 100644 --- a/index.html +++ b/index.html @@ -92,7 +92,6 @@ - diff --git a/js/id/behavior/drag_way.js b/js/id/behavior/drag_way.js deleted file mode 100644 index 6de8ca252..000000000 --- a/js/id/behavior/drag_way.js +++ /dev/null @@ -1,28 +0,0 @@ -iD.behavior.DragWay = function(mode) { - var history = mode.history, - projection = mode.map.projection; - - return iD.behavior.drag() - .delegate('.casing, .stroke, .area') - .filter(function(d) { - return d && d.id === mode.entity.id; - }) - .origin(function(entity) { - return projection(history.graph().entity(entity.nodes[0]).loc); - }) - .on('start', function() { - history.perform( - iD.actions.Noop()); - }) - .on('move', function(entity) { - d3.event.sourceEvent.stopPropagation(); - history.replace( - iD.actions.MoveWay(entity.id, d3.event.delta, projection), - 'moved a way'); - }) - .on('end', function() { - history.replace( - iD.actions.Noop(), - 'moved a way'); - }); -}; diff --git a/test/index.html b/test/index.html index 00dc91ed5..12cf31886 100644 --- a/test/index.html +++ b/test/index.html @@ -86,7 +86,6 @@ -