Skip to content

Commit

Permalink
fix(Subscriber): creates safesubscriber for internal subscribers
Browse files Browse the repository at this point in the history
- closes #2813
  • Loading branch information
kwonoj committed Sep 25, 2017
1 parent 2e576dc commit 0f59314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class Subscriber<T> extends Subscription implements Observer<T> {
break;
}
if (typeof destinationOrNext === 'object') {
if (destinationOrNext instanceof Subscriber) {
if (destinationOrNext instanceof SafeSubscriber) {
this.destination = (<Subscriber<any>> destinationOrNext);
(<any> this.destination).add(this);
} else {
Expand Down

0 comments on commit 0f59314

Please sign in to comment.