Remove context.childNodes function

This commit is contained in:
Quincy Morgan
2020-03-21 13:56:11 -07:00
parent 5fd25601fe
commit fac613e1dc
6 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ export function behaviorDraw(context) {
} else if (target && target.type === 'way' && (mode.id !== 'add-point' || mode.preset.matchGeometry('vertex'))) { // Snap to a way
var choice = geoChooseEdge(
context.childNodes(target), loc, context.projection, context.activeID()
context.graph().childNodes(target), loc, context.projection, context.activeID()
);
if (choice) {
var edge = [target.nodes[choice.index - 1], target.nodes[choice.index]];