From 579dda951517ea688784f57a15e4152c559bc4ad Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Tue, 28 Mar 2017 12:11:05 +0800 Subject: Update focus argument with cm instance --- public/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/js') 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() -- cgit v1.2.3