summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorWu Cheng-Han2017-01-02 11:05:49 +0800
committerWu Cheng-Han2017-01-02 11:05:49 +0800
commit0db4358adb12b2df1051874829f658496df6910c (patch)
tree2581ac5a36e1ad8bda347612161df92961675f92 /public/js
parentb1ec3ba748dc7b58015e97448958e78b512f6df0 (diff)
Fix authorship might losing update event because of throttling
Diffstat (limited to 'public/js')
-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 e62d1dcb..2e0513c2 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() {