Skip to content

Commit

Permalink
fix(core): make .toRx() return Subject
Browse files Browse the repository at this point in the history
this was broken in the original great RxNext migration.
fixes angular#4521
  • Loading branch information
robwormald committed Oct 6, 2015
1 parent 74c852b commit 1baa6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/angular2/src/core/facade/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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); }

Expand Down

0 comments on commit 1baa6c4

Please sign in to comment.