Skip to content

Commit df743ab

Browse files
committed
Fix listener “this” context
1 parent 46ed658 commit df743ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/lib/editor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default class Editor {
127127
}
128128

129129
this.editor.on(event, (...args) => {
130-
this.eventListeners[event].forEach(cb => cb(...args))
130+
this.eventListeners[event].forEach(cb => cb.bind(this)(...args))
131131
})
132132
}
133133

0 commit comments

Comments
 (0)