diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index c8b5f1e27..efae0e052 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -85,6 +85,8 @@ function Ace2Inner(){ iframe.ace_outerWin = null; // prevent IE 6 memory leak var sideDiv = iframe.nextSibling; var lineMetricsDiv = sideDiv.nextSibling; + var lineNumbersShown; + var sideDivInner; initLineNumbers(); var scroll = Scroll.init(outerWin); @@ -4916,9 +4918,6 @@ function Ace2Inner(){ editorInfo.ace_doInsertUnorderedList = doInsertUnorderedList; editorInfo.ace_doInsertOrderedList = doInsertOrderedList; - var lineNumbersShown; - var sideDivInner; - function initLineNumbers() { lineNumbersShown = 1; sideDiv.innerHTML = '
1
';