mirror of https://github.com/status-im/codimd.git
Fix authorship might losing update event because of throttling
This commit is contained in:
parent
b1ec3ba748
commit
0db4358adb
|
@ -2443,7 +2443,7 @@ function updateInfo(data) {
|
||||||
updateAuthorship();
|
updateAuthorship();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var updateAuthorship = _.throttle(function () {
|
var updateAuthorship = _.debounce(function () {
|
||||||
editor.operation(updateAuthorshipInner);
|
editor.operation(updateAuthorshipInner);
|
||||||
}, 50);
|
}, 50);
|
||||||
function initMark() {
|
function initMark() {
|
||||||
|
|
Loading…
Reference in New Issue