mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 08:08:10 +08:00
Remove comment
This commit is contained in:
parent
84d40727af
commit
7d9a615a48
1 changed files with 2 additions and 4 deletions
|
@ -174,8 +174,8 @@ function onSpellcheckFullDocument(editor) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// compare old decorations to new decorations. If we call call onChange
|
// compare old decorations to new decorations. We're debounced, so calling
|
||||||
// it pushes on the undo stack, which we don't want to do unnecessarily.
|
// onChange() introduces a re-render we wouldn't be doing otherwise.
|
||||||
let changed = false;
|
let changed = false;
|
||||||
const previous = value.get('decorations');
|
const previous = value.get('decorations');
|
||||||
|
|
||||||
|
@ -201,8 +201,6 @@ function onSpellcheckFullDocument(editor) {
|
||||||
.setValue({ decorations })
|
.setValue({ decorations })
|
||||||
.setOperationFlag('save', true);
|
.setOperationFlag('save', true);
|
||||||
editor.onChange(change);
|
editor.onChange(change);
|
||||||
} else {
|
|
||||||
console.log('skipping pointless decorator update');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue