Skip to content

Commit

Permalink
fix(ScalarObservable): set _isScalar to false when initialized with a…
Browse files Browse the repository at this point in the history
… scheduler
  • Loading branch information
trxcllnt authored and benlesh committed May 2, 2016
1 parent f5090b4 commit 5037b3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/observable/ScalarObservable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export class ScalarObservable<T> extends Observable<T> {

constructor(public value: T, private scheduler?: Scheduler) {
super();
if (scheduler) {
this._isScalar = false;
}
}

protected _subscribe(subscriber: Subscriber<T>): TeardownLogic {
Expand Down

0 comments on commit 5037b3a

Please sign in to comment.