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