Skip to content

Commit

Permalink
fix(debounce): support scalar selectors
Browse files Browse the repository at this point in the history
Closes #3232
  • Loading branch information
cartant committed Jan 19, 2018
1 parent 336847b commit 5a633f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/operators/debounce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class DebounceSubscriber<T, R> extends OuterSubscriber<T, R> {
}

subscription = subscribeToResult(this, duration);
if (!subscription.closed) {
if (subscription && !subscription.closed) {
this.add(this.durationSubscription = subscription);
}
}
Expand Down

0 comments on commit 5a633f9

Please sign in to comment.