We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d3e559 commit 4a17e69Copy full SHA for 4a17e69
1 file changed
modules/angular2/src/facade/async.ts
@@ -39,7 +39,7 @@ export class ObservableWrapper {
39
return emitter.subscribe({next: onNext, error: onError, complete: onComplete});
40
}
41
42
- static isObservable(obs: any): boolean { return obs instanceof RxObservable; }
+ static isObservable(obs: any): boolean { return !!obs.subscribe; }
43
44
/**
45
* Returns whether `obs` has any subscribers listening to events.
0 commit comments