From e1447aca9e7fb4dc6f479376620f02f4c3aa3638 Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Fri, 4 Dec 2015 11:49:40 +0200 Subject: [PATCH] fix(catch): fix catch() to preserve Subscriber chain Fix Catch() operator to include CatchSubscriber in the destination Subscriber, in order not to break unsubscription chains. --- src/operator/catch.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/operator/catch.ts b/src/operator/catch.ts index 44cbe71ee7..450d40b0da 100644 --- a/src/operator/catch.ts +++ b/src/operator/catch.ts @@ -39,6 +39,7 @@ class CatchSubscriber extends Subscriber { private caught: Observable) { super(null); this.lastSubscription = this; + this.destination.add(this); } _next(value: T) {