Re-enable rule line-between-class-members (#10862)

This commit is contained in:
Kamil Gabryjelski
2020-09-15 00:41:32 +02:00
committed by GitHub
parent 91b8c8afc9
commit e28f3d6220
53 changed files with 277 additions and 3 deletions

View File

@@ -31,10 +31,12 @@ class DebouncedMessageQueue {
this.trigger = debounce(this.trigger.bind(this), this.delayThrehold);
this.callback = callback;
}
append(eventData) {
this.queue.push(eventData);
this.trigger();
}
trigger() {
if (this.queue.length > 0) {
const events = this.queue.splice(0, this.sizeThreshold);