From f4dbac24697c483998cf319398acf89fd3f6e13d Mon Sep 17 00:00:00 2001 From: Jeremy Hughes Date: Sun, 13 Aug 2017 17:37:10 +1200 Subject: [PATCH] truncate final array --- src/ChunksOfSink.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ChunksOfSink.js b/src/ChunksOfSink.js index 6c0de46..7a6bd45 100644 --- a/src/ChunksOfSink.js +++ b/src/ChunksOfSink.js @@ -23,6 +23,7 @@ export class ChunksOfSink { end (time, value) { if (this.length > 0) { + this.xs.length = this.length; this.sink.event(time, this.xs) } return this.sink.end(time, value)