From 0db4358adb12b2df1051874829f658496df6910c Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 2 Jan 2017 11:05:49 +0800 Subject: [PATCH] Fix authorship might losing update event because of throttling --- 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 e62d1dcb7..2e0513c20 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -2443,7 +2443,7 @@ function updateInfo(data) { updateAuthorship(); } } -var updateAuthorship = _.throttle(function () { +var updateAuthorship = _.debounce(function () { editor.operation(updateAuthorshipInner); }, 50); function initMark() {