mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
ace2_inner: Delete unnecessary container
variable
This commit is contained in:
parent
4b4584c264
commit
7d807d2fc5
1 changed files with 2 additions and 3 deletions
|
@ -3605,7 +3605,6 @@ function Ace2Inner(editorInfo, cssManagers) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newNumLines !== lineNumbersShown) {
|
if (newNumLines !== lineNumbersShown) {
|
||||||
const container = sideDivInner;
|
|
||||||
const fragment = outerDoc.createDocumentFragment();
|
const fragment = outerDoc.createDocumentFragment();
|
||||||
|
|
||||||
// Create missing line and apply height
|
// Create missing line and apply height
|
||||||
|
@ -3620,11 +3619,11 @@ function Ace2Inner(editorInfo, cssManagers) {
|
||||||
fragment.appendChild(div);
|
fragment.appendChild(div);
|
||||||
currentLine++;
|
currentLine++;
|
||||||
}
|
}
|
||||||
container.appendChild(fragment);
|
sideDivInner.appendChild(fragment);
|
||||||
|
|
||||||
// Remove extra lines
|
// Remove extra lines
|
||||||
while (lineNumbersShown > newNumLines) {
|
while (lineNumbersShown > newNumLines) {
|
||||||
container.removeChild(container.lastChild);
|
sideDivInner.removeChild(sideDivInner.lastChild);
|
||||||
lineNumbersShown--;
|
lineNumbersShown--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue