mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Remove context.childNodes function
This commit is contained in:
@@ -379,7 +379,7 @@ export function modeDragNode(context) {
|
||||
);
|
||||
|
||||
} else if (target && target.type === 'way') {
|
||||
var choice = geoChooseEdge(context.childNodes(target), context.mouse(), context.projection, entity.id);
|
||||
var choice = geoChooseEdge(context.graph().childNodes(target), context.mouse(), context.projection, entity.id);
|
||||
context.replace(
|
||||
actionAddMidpoint({
|
||||
loc: choice.loc,
|
||||
|
||||
@@ -354,7 +354,7 @@ export function modeSelect(context, selectedIDs) {
|
||||
if (!entity) return;
|
||||
|
||||
if (entity instanceof osmWay && target.classed('target')) {
|
||||
var choice = geoChooseEdge(context.childNodes(entity), loc, context.projection);
|
||||
var choice = geoChooseEdge(context.graph().childNodes(entity), loc, context.projection);
|
||||
var prev = entity.nodes[choice.index - 1];
|
||||
var next = entity.nodes[choice.index];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user