From 5d28a38e0f157ef988c235c706ac7b7750d4996b Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 14 Oct 2015 17:29:55 +0300 Subject: [PATCH] fix(bufferWhen): onComplete of closings determine buffers Change bufferWhen operator to allow its closing Observables to close the buffer whenever the closing Observable emits 'complete'. This is in agreement with functionality in RxJS 4 buffer operator. Important for the test 'Observable.prototype.bufferWhen should emit buffers using varying empty delayed closings'. --- src/operators/bufferWhen.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operators/bufferWhen.ts b/src/operators/bufferWhen.ts index 4c2e0848bc..1ff078da55 100644 --- a/src/operators/bufferWhen.ts +++ b/src/operators/bufferWhen.ts @@ -92,6 +92,6 @@ class BufferClosingNotifierSubscriber extends Subscriber { } _complete() { - // noop + this.parent.openBuffer(); } } \ No newline at end of file