mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
Cache issues in crossing ways validation to avoid checking the same pairs twice
This commit is contained in:
@@ -124,6 +124,12 @@ export function coreValidator(context) {
|
||||
_issuesByEntityID = {}; // clear cached
|
||||
_issues = [];
|
||||
|
||||
for (var validationIndex in validations) {
|
||||
if (validations[validationIndex].reset) {
|
||||
validations[validationIndex].reset();
|
||||
}
|
||||
}
|
||||
|
||||
var history = context.history();
|
||||
var changes = history.changes();
|
||||
var entitiesToCheck = changes.created.concat(changes.modified);
|
||||
|
||||
Reference in New Issue
Block a user