From 4a36fd82030d5faad9819d8ebd60598122eb67aa 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 Closes #4540 --- 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 a805871c9d..902a185108 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); }