Skip to content

Commit

Permalink
fix(AnonymousSubject): is now exposed on Rx namespace
Browse files Browse the repository at this point in the history
fixes #2002
  • Loading branch information
benlesh committed Oct 4, 2016
1 parent 1ba0358 commit 0a6f049
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 0a6f049

Please sign in to comment.