fix(async): improve Rx support in ObservableWrapper
This commit is contained in:
parent
8d3e5596dc
commit
4a17e6906c
|
@ -39,7 +39,7 @@ export class ObservableWrapper {
|
||||||
return emitter.subscribe({next: onNext, error: onError, complete: onComplete});
|
return emitter.subscribe({next: onNext, error: onError, complete: onComplete});
|
||||||
}
|
}
|
||||||
|
|
||||||
static isObservable(obs: any): boolean { return obs instanceof RxObservable; }
|
static isObservable(obs: any): boolean { return !!obs.subscribe; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether `obs` has any subscribers listening to events.
|
* Returns whether `obs` has any subscribers listening to events.
|
||||||
|
|
Loading…
Reference in New Issue