mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
ace2_inner: Combine declaration and initialization
This commit is contained in:
parent
7a8edc816b
commit
b80295c228
1 changed files with 1 additions and 2 deletions
|
@ -64,14 +64,13 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
const outerDoc = outerWin.document;
|
||||
const sideDiv = outerDoc.getElementById('sidediv');
|
||||
const lineMetricsDiv = outerDoc.getElementById('linemetricsdiv');
|
||||
let lineNumbersShown;
|
||||
const sideDivInner = (() => {
|
||||
const htmlOpen = '<div id="sidedivinner" class="sidedivinner"><div><span class="line-number">1';
|
||||
const htmlClose = '</span></div></div>';
|
||||
lineNumbersShown = 1;
|
||||
sideDiv.innerHTML = `${htmlOpen}${htmlClose}`;
|
||||
return outerDoc.getElementById('sidedivinner');
|
||||
})();
|
||||
let lineNumbersShown = 1;
|
||||
|
||||
const scroll = Scroll.init(outerWin);
|
||||
|
||||
|
|
Loading…
Reference in a new issue