Skip to content

Commit

Permalink
fix(catch): fix catch() to preserve Subscriber chain
Browse files Browse the repository at this point in the history
Fix Catch() operator to include CatchSubscriber in the destination Subscriber, in order not to break
unsubscription chains.
  • Loading branch information
staltz authored and benlesh committed Dec 4, 2015
1 parent c9c535c commit e1447ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/operator/catch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class CatchSubscriber<T> extends Subscriber<T> {
private caught: Observable<any>) {
super(null);
this.lastSubscription = this;
this.destination.add(this);
}

_next(value: T) {
Expand Down

0 comments on commit e1447ac

Please sign in to comment.