mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
Fix typos
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user