mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(async): improve Rx support in ObservableWrapper
This commit is contained in:
@@ -39,7 +39,7 @@ export class ObservableWrapper {
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user