ace2_inner: Delete unnecessary `container` variable

pull/5153/head
Richard Hansen 2021-08-14 20:49:39 -04:00
parent 4b4584c264
commit 7d807d2fc5
1 changed files with 2 additions and 3 deletions

View File

@ -3605,7 +3605,6 @@ function Ace2Inner(editorInfo, cssManagers) {
}
if (newNumLines !== lineNumbersShown) {
const container = sideDivInner;
const fragment = outerDoc.createDocumentFragment();
// Create missing line and apply height
@ -3620,11 +3619,11 @@ function Ace2Inner(editorInfo, cssManagers) {
fragment.appendChild(div);
currentLine++;
}
container.appendChild(fragment);
sideDivInner.appendChild(fragment);
// Remove extra lines
while (lineNumbersShown > newNumLines) {
container.removeChild(container.lastChild);
sideDivInner.removeChild(sideDivInner.lastChild);
lineNumbersShown--;
}
}