From 685b7c7fdf37d796672a962c9709ee31b2797345 Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Thu, 15 Sep 2016 14:31:21 -0700 Subject: [PATCH] fix(bufferTime): correct bufferCreationInterval check for null - closes #1944[ --- src/operator/bufferTime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operator/bufferTime.ts b/src/operator/bufferTime.ts index 911ba5576bf..32df7d95f45 100644 --- a/src/operator/bufferTime.ts +++ b/src/operator/bufferTime.ts @@ -120,7 +120,7 @@ class BufferTimeSubscriber extends Subscriber { private scheduler: Scheduler) { super(destination); const context = this.openContext(); - this.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0; + this.timespanOnly = bufferCreationInterval === null || bufferCreationInterval < 0; if (this.timespanOnly) { const timeSpanOnlyState = { subscriber: this, context, bufferTimeSpan }; this.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));