From 1baa6c4493f2f58bc8ea20cddcfbb396e524a206 Mon Sep 17 00:00:00 2001 From: Rob Wormald Date: Mon, 5 Oct 2015 18:04:28 -0700 Subject: [PATCH] fix(core): make .toRx() return Subject this was broken in the original great RxNext migration. fixes #4521 --- modules/angular2/src/core/facade/async.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/core/facade/async.ts b/modules/angular2/src/core/facade/async.ts index a805871c9d1cf..902a1851084af 100644 --- a/modules/angular2/src/core/facade/async.ts +++ b/modules/angular2/src/core/facade/async.ts @@ -137,7 +137,7 @@ export class EventEmitter extends Observable { () => generator.return ? generator.return () : null); } - toRx(): any { return this; } + toRx(): any { return this._subject; } next(value: any) { this._subject.next(value); }