Add comment explaining debounce

This commit is contained in:
Shane Kilkelly 2017-05-25 09:35:38 +01:00
parent ea9a0dda83
commit 0543f32ff0

View file

@ -33,6 +33,7 @@ define [
@state.documents[docId] = labels
scheduleLoadLabelsFromOpenDoc: () ->
# De-bounce loading labels with a timeout
if @loadLabelsTimeout
clearTimeout(@loadLabelsTimeout)
@loadLabelsTimeout = setTimeout(