Skip to content

Commit

Permalink
fix(bufferTime): correct bufferCreationInterval check for null
Browse files Browse the repository at this point in the history
- closes ReactiveX#1944[
  • Loading branch information
kwonoj committed Sep 15, 2016
1 parent 6bd3423 commit 685b7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/bufferTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class BufferTimeSubscriber<T> extends Subscriber<T> {
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));
Expand Down

0 comments on commit 685b7c7

Please sign in to comment.