mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add comment explaining debounce
This commit is contained in:
parent
ea9a0dda83
commit
0543f32ff0
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ define [
|
|||
@state.documents[docId] = labels
|
||||
|
||||
scheduleLoadLabelsFromOpenDoc: () ->
|
||||
# De-bounce loading labels with a timeout
|
||||
if @loadLabelsTimeout
|
||||
clearTimeout(@loadLabelsTimeout)
|
||||
@loadLabelsTimeout = setTimeout(
|
||||
|
|
Loading…
Reference in a new issue