diff options
author | Wu Cheng-Han | 2017-01-02 11:05:49 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-01-02 11:05:49 +0800 |
commit | 0db4358adb12b2df1051874829f658496df6910c (patch) | |
tree | 2581ac5a36e1ad8bda347612161df92961675f92 /public/js | |
parent | b1ec3ba748dc7b58015e97448958e78b512f6df0 (diff) |
Fix authorship might losing update event because of throttling
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 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() { |