ace2_inner.js: Delete unnecessary ace_outerWin variable

This commit is contained in:
Richard Hansen 2021-07-29 01:22:14 -04:00
parent 8d869ec927
commit 0c963a817a
2 changed files with 1 additions and 3 deletions

View file

@ -241,7 +241,6 @@ const Ace2Editor = function () {
// The iframe MUST have a src or srcdoc property to avoid browser quirks. See the comment above
// outerFrame.srcdoc.
innerFrame.srcdoc = '<!DOCTYPE html>';
innerFrame.ace_outerWin = outerWindow;
outerDocument.body.insertBefore(innerFrame, outerDocument.body.firstChild);
const innerWindow = innerFrame.contentWindow;

View file

@ -61,8 +61,7 @@ function Ace2Inner(editorInfo, cssManagers) {
};
const iframe = window.frameElement;
const outerWin = iframe.ace_outerWin;
iframe.ace_outerWin = null; // prevent IE 6 memory leak
const outerWin = window.parent;
const sideDiv = iframe.nextSibling;
const lineMetricsDiv = sideDiv.nextSibling;
let lineNumbersShown;