Skip to content

Commit 7637a6a

Browse files
committed
Update cm instance in changes event argument
1 parent f5b95c5 commit 7637a6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2646,7 +2646,7 @@ editorInstance.on('cut', function () {
26462646
editorInstance.on('paste', function () {
26472647
// na
26482648
})
2649-
editorInstance.on('changes', function (cm, changes) {
2649+
editorInstance.on('changes', function (editor, changes) {
26502650
updateHistory()
26512651
var docLength = editor.getValue().length
26522652
// workaround for big documents

0 commit comments

Comments
 (0)