mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 12:01:32 +02:00
Add comment explaining debounce
This commit is contained in:
@@ -33,6 +33,7 @@ define [
|
||||
@state.documents[docId] = labels
|
||||
|
||||
scheduleLoadLabelsFromOpenDoc: () ->
|
||||
# De-bounce loading labels with a timeout
|
||||
if @loadLabelsTimeout
|
||||
clearTimeout(@loadLabelsTimeout)
|
||||
@loadLabelsTimeout = setTimeout(
|
||||
|
||||
Reference in New Issue
Block a user