contentcollector: Delete unused `domInterface` parameter

pull/4685/head
Richard Hansen 2021-01-21 02:30:29 -05:00 committed by John McLear
parent 42c25b2536
commit 74bb2f76cc
2 changed files with 3 additions and 3 deletions

View File

@ -1139,7 +1139,7 @@ function Ace2Inner() {
lastDirtyNode = (lastDirtyNode && isNodeDirty(lastDirtyNode) && lastDirtyNode);
if (firstDirtyNode && lastDirtyNode) {
const cc = makeContentCollector(isStyled, browser, rep.apool, null, className2Author);
const cc = makeContentCollector(isStyled, browser, rep.apool, className2Author);
cc.notifySelection(selection);
const dirtyNodes = [];
for (let n = firstDirtyNode; n &&

View File

@ -32,8 +32,8 @@ const hooks = require('./pluginfw/hooks');
const sanitizeUnicode = (s) => UNorm.nfc(s);
const makeContentCollector = (collectStyles, abrowser, apool, domInterface, className2Author) => {
const dom = domInterface || {
const makeContentCollector = (collectStyles, abrowser, apool, className2Author) => {
const dom = {
isNodeText: (n) => n.nodeType === 3,
nodeTagName: (n) => n.tagName,
nodeValue: (n) => n.nodeValue,