summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorYukai Huang2017-03-28 17:32:42 +0800
committerYukai Huang2017-03-28 17:32:42 +0800
commit7637a6a8a650a8247a02a7c2ccaf5d370b3a0625 (patch)
tree55eabe1c808bbdd07761fc6bdef827b467c2b29c /public
parentf5b95c5d3692169b48daff3c6f3538f53dd62380 (diff)
Update cm instance in changes event argument
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
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