Skip to content

Commit

Permalink
feat(emptyObserver): makes emptyObserver noop functions instead of null
Browse files Browse the repository at this point in the history
Causes .remember() to blow up when the values are null.
  • Loading branch information
TylorS committed Feb 29, 2016
1 parent cc5650f commit e1d2537
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/emptyObserver.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {Observer} from '../Observer';
import {noop} from './noop';
export var emptyObserver: Observer<any> = {
next: null,
error: null,
end: null,
next: noop,
error: noop,
end: noop,
};

0 comments on commit e1d2537

Please sign in to comment.