diff options
author | Yukai Huang | 2017-03-28 17:32:42 +0800 |
---|---|---|
committer | Yukai Huang | 2017-03-28 17:32:42 +0800 |
commit | 7637a6a8a650a8247a02a7c2ccaf5d370b3a0625 (patch) | |
tree | 55eabe1c808bbdd07761fc6bdef827b467c2b29c | |
parent | f5b95c5d3692169b48daff3c6f3538f53dd62380 (diff) |
Update cm instance in changes event argument
Diffstat (limited to '')
-rw-r--r-- | public/js/index.js | 2 |
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 |