mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 01:24:05 +02:00
Validations now update instantly upon an annotated graph change
This commit is contained in:
@@ -459,10 +459,10 @@ export function coreContext() {
|
||||
|
||||
issueManager = IssueManager(context);
|
||||
|
||||
var debouncedValidate = _debounce(issueManager.validate, 1000);
|
||||
history.on('change', function(difference) {
|
||||
// re-run validation upon a significant graph change
|
||||
history.on('annotatedChange', function(difference) {
|
||||
if (difference) {
|
||||
debouncedValidate();
|
||||
issueManager.validate();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user