From 7637a6a8a650a8247a02a7c2ccaf5d370b3a0625 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Tue, 28 Mar 2017 17:32:42 +0800 Subject: Update cm instance in changes event argument --- public/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index d51ecb54..f1a101ea 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -2646,7 +2646,7 @@ editorInstance.on('cut', function () { editorInstance.on('paste', function () { // na }) -editorInstance.on('changes', function (cm, changes) { +editorInstance.on('changes', function (editor, changes) { updateHistory() var docLength = editor.getValue().length // workaround for big documents -- cgit v1.2.3