Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
572 bytes
|
Line | |
---|
1 | import { Subscriber } from '../Subscriber';
|
---|
2 | export function dematerialize() {
|
---|
3 | return function dematerializeOperatorFunction(source) {
|
---|
4 | return source.lift(new DeMaterializeOperator());
|
---|
5 | };
|
---|
6 | }
|
---|
7 | class DeMaterializeOperator {
|
---|
8 | call(subscriber, source) {
|
---|
9 | return source.subscribe(new DeMaterializeSubscriber(subscriber));
|
---|
10 | }
|
---|
11 | }
|
---|
12 | class DeMaterializeSubscriber extends Subscriber {
|
---|
13 | constructor(destination) {
|
---|
14 | super(destination);
|
---|
15 | }
|
---|
16 | _next(value) {
|
---|
17 | value.observe(this.destination);
|
---|
18 | }
|
---|
19 | }
|
---|
20 | //# sourceMappingURL=dematerialize.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.