summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorYukai Huang2017-03-28 12:11:05 +0800
committerYukai Huang2017-03-28 12:11:05 +0800
commit579dda951517ea688784f57a15e4152c559bc4ad (patch)
tree9e2ba321d120abe146cdf2b9c1d7af81360d846e /public
parentd7c068cbfdc8d6173ea722ce02f9151d8e5ff807 (diff)
Update focus argument with cm instance
Diffstat (limited to '')
-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 4059431d..5b3d4770 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2690,7 +2690,7 @@ editorInstance.on('changes', function (cm, changes) {
}
}
})
-editorInstance.on('focus', function (cm) {
+editorInstance.on('focus', function (editor) {
for (var i = 0; i < window.onlineUsers.length; i++) {
if (window.onlineUsers[i].id === window.personalInfo.id) {
window.onlineUsers[i].cursor = editor.getCursor()