Skip to content

Commit

Permalink
Merge pull request #2003 from blesh/expose_AnonSubject
Browse files Browse the repository at this point in the history
fix(AnonymousSubject): is now exposed on Rx namespace
  • Loading branch information
kwonoj authored Oct 5, 2016
2 parents 1ba0358 + 0a6f049 commit 5448f87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions spec/Subject-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,10 @@ describe('Subject', () => {
});

describe('AnonymousSubject', () => {
it('should be exposed', () => {
expect(Rx.AnonymousSubject).to.be.a('function');
});

it('should not eager', () => {
let subscribed = false;

Expand Down
2 changes: 1 addition & 1 deletion src/Rx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Subject imported before Observable to bypass circular dependency issue since
// Subject extends Observable and Observable references Subject in it's
// definition
export {Subject} from './Subject';
export {Subject, AnonymousSubject} from './Subject';
/* tslint:enable:no-unused-variable */
export {Observable} from './Observable';

Expand Down

0 comments on commit 5448f87

Please sign in to comment.