mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
Fix listener “this” context
This commit is contained in:
parent
46ed658d8b
commit
df743ab902
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ export default class Editor {
|
|||
}
|
||||
|
||||
this.editor.on(event, (...args) => {
|
||||
this.eventListeners[event].forEach(cb => cb(...args))
|
||||
this.eventListeners[event].forEach(cb => cb.bind(this)(...args))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue