diff --git a/modules/actions/join.js b/modules/actions/join.js index 3515a243b..9d85dfe6f 100644 --- a/modules/actions/join.js +++ b/modules/actions/join.js @@ -39,7 +39,7 @@ export function actionJoin(ids) { }); // Prefer to keep an existing way. - // if there are mulitple existing ways, keep the oldest one + // if there are multiple existing ways, keep the oldest one // the oldest way is determined by the ID of the way const survivorID = ( ways diff --git a/modules/behavior/draw_way.js b/modules/behavior/draw_way.js index 0a7645d62..37a049d90 100644 --- a/modules/behavior/draw_way.js +++ b/modules/behavior/draw_way.js @@ -478,7 +478,7 @@ export function behaviorDrawWay(context, wayID, mode, startGraph) { const indexOfSecondLast = way.nodes.indexOf(secondLastNodeId); // for a closed way, the first/last node is the same so it appears twice in the array, - // but indexOf always finds the first occurance. This is only an issue when following a way + // but indexOf always finds the first occurrence. This is only an issue when following a way // in descending order const isDescendingPastZero = indexOfLast === way.nodes.length - 2 && indexOfSecondLast === 0; diff --git a/modules/core/validator.js b/modules/core/validator.js index 2e899d9b4..0fec44f08 100644 --- a/modules/core/validator.js +++ b/modules/core/validator.js @@ -871,7 +871,7 @@ function validationCache(which) { const issue = cache.issuesByIssueID[issueID]; if (issue) { (issue.entityIds || []).forEach(relatedID => result.add(relatedID)); - } else { // shouldnt happen, clean up + } else { // shouldn't happen, clean up delete cache.issuesByIssueID[issueID]; } });