refactoring

This commit is contained in:
Philipp Kühn 2021-02-18 22:44:50 +01:00
parent f6a20d2b6e
commit 223512a536

View File

@ -63,7 +63,7 @@ export default class ExtensionManager {
}
get commands(): RawCommands {
return this.extensions.reduce((extensions, extension) => {
return this.extensions.reduce((commands, extension) => {
const context = {
options: extension.options,
editor: this.editor,
@ -71,7 +71,7 @@ export default class ExtensionManager {
}
return {
...extensions,
...commands,
...extension.config.addCommands.bind(context)(),
}
}, {} as RawCommands)