delete contents of slide array before reassigning

This commit is contained in:
Jake McDermott
2018-11-05 19:03:51 -05:00
parent 3a929919a3
commit 4c74c8c40c

View File

@@ -114,6 +114,9 @@ function SlidingWindowService ($q) {
}
}
this.buffer.events.length = 0;
delete this.buffer.events;
this.buffer.events = frames;
this.buffer.min = min;
this.buffer.max = max;