X Tutup
Skip to content

Commit 4a36fd8

Browse files
committed
fix(core): make .toRx() return Subject
this was broken in the original great RxNext migration. fixes angular#4521 Closes angular#4540
1 parent ba6e0e1 commit 4a36fd8

File tree

1 file changed

+1
-1
lines changed
  • modules/angular2/src/core/facade

1 file changed

+1
-1
lines changed

modules/angular2/src/core/facade/async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class EventEmitter extends Observable {
137137
() => generator.return ? generator.return () : null);
138138
}
139139

140-
toRx(): any { return this; }
140+
toRx(): any { return this._subject; }
141141

142142
next(value: any) { this._subject.next(value); }
143143

0 commit comments

Comments
 (0)
X Tutup