mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
ace2_inner.js: Delete unnecessary ace_outerWin
variable
This commit is contained in:
parent
8d869ec927
commit
0c963a817a
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue