X Tutup
Skip to content

Commit 4a17e69

Browse files
robwormaldvsavkin
authored andcommitted
fix(async): improve Rx support in ObservableWrapper
1 parent 8d3e559 commit 4a17e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/facade/async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class ObservableWrapper {
3939
return emitter.subscribe({next: onNext, error: onError, complete: onComplete});
4040
}
4141

42-
static isObservable(obs: any): boolean { return obs instanceof RxObservable; }
42+
static isObservable(obs: any): boolean { return !!obs.subscribe; }
4343

4444
/**
4545
* Returns whether `obs` has any subscribers listening to events.

0 commit comments

Comments
 (0)
X Tutup