mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-08 05:36:09 +02:00
ace2_inner: Fix for..in iteration
See commit c38c34bef47a74467394797b34165641a87ac620.
This commit is contained in:
parent
2d50a8aa95
commit
f06307cb4c
@ -2263,13 +2263,11 @@ function Ace2Inner(editorInfo, cssManagers) {
|
||||
detectChangesAroundLine(0, 1);
|
||||
detectChangesAroundLine(N - 1, 1);
|
||||
|
||||
for (const k in observedChanges.cleanNodesNearChanges) {
|
||||
if (observedChanges.cleanNodesNearChanges[k]) {
|
||||
const key = k.substring(1);
|
||||
if (rep.lines.containsKey(key)) {
|
||||
const line = rep.lines.indexOfKey(key);
|
||||
detectChangesAroundLine(line, 2);
|
||||
}
|
||||
for (const k of Object.keys(observedChanges.cleanNodesNearChanges)) {
|
||||
const key = k.substring(1);
|
||||
if (rep.lines.containsKey(key)) {
|
||||
const line = rep.lines.indexOfKey(key);
|
||||
detectChangesAroundLine(line, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user