mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Ace2Inner: Inline code that is unnecessarily inside an IIFE
This commit is contained in:
parent
4890cd8972
commit
788eb86d84
1 changed files with 17 additions and 19 deletions
|
@ -1475,7 +1475,6 @@ function Ace2Inner(editorInfo, cssManagers) {
|
||||||
throw new Error(`doRepApplyChangeset length mismatch: ${errMsg}`);
|
throw new Error(`doRepApplyChangeset length mismatch: ${errMsg}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
((changes) => {
|
|
||||||
const editEvent = currentCallStack.editEvent;
|
const editEvent = currentCallStack.editEvent;
|
||||||
if (editEvent.eventType === 'nonundoable') {
|
if (editEvent.eventType === 'nonundoable') {
|
||||||
if (!editEvent.changeset) {
|
if (!editEvent.changeset) {
|
||||||
|
@ -1495,7 +1494,6 @@ function Ace2Inner(editorInfo, cssManagers) {
|
||||||
editEvent.backset = Changeset.compose(inverseChangeset, editEvent.backset, rep.apool);
|
editEvent.backset = Changeset.compose(inverseChangeset, editEvent.backset, rep.apool);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})(changes);
|
|
||||||
|
|
||||||
Changeset.mutateAttributionLines(changes, rep.alines, rep.apool);
|
Changeset.mutateAttributionLines(changes, rep.alines, rep.apool);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue