mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +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
|
||||
// it pushes on the undo stack, which we don't want to do unnecessarily.
|
||||
// compare old decorations to new decorations. We're debounced, so calling
|
||||
// onChange() introduces a re-render we wouldn't be doing otherwise.
|
||||
let changed = false;
|
||||
const previous = value.get('decorations');
|
||||
|
||||
|
@ -201,8 +201,6 @@ function onSpellcheckFullDocument(editor) {
|
|||
.setValue({ decorations })
|
||||
.setOperationFlag('save', true);
|
||||
editor.onChange(change);
|
||||
} else {
|
||||
console.log('skipping pointless decorator update');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue