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:
1.0 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
---|
| 2 | import * as tslib_1 from "tslib";
|
---|
| 3 | import { Subscriber } from '../Subscriber';
|
---|
| 4 | export function dematerialize() {
|
---|
| 5 | return function dematerializeOperatorFunction(source) {
|
---|
| 6 | return source.lift(new DeMaterializeOperator());
|
---|
| 7 | };
|
---|
| 8 | }
|
---|
| 9 | var DeMaterializeOperator = /*@__PURE__*/ (function () {
|
---|
| 10 | function DeMaterializeOperator() {
|
---|
| 11 | }
|
---|
| 12 | DeMaterializeOperator.prototype.call = function (subscriber, source) {
|
---|
| 13 | return source.subscribe(new DeMaterializeSubscriber(subscriber));
|
---|
| 14 | };
|
---|
| 15 | return DeMaterializeOperator;
|
---|
| 16 | }());
|
---|
| 17 | var DeMaterializeSubscriber = /*@__PURE__*/ (function (_super) {
|
---|
| 18 | tslib_1.__extends(DeMaterializeSubscriber, _super);
|
---|
| 19 | function DeMaterializeSubscriber(destination) {
|
---|
| 20 | return _super.call(this, destination) || this;
|
---|
| 21 | }
|
---|
| 22 | DeMaterializeSubscriber.prototype._next = function (value) {
|
---|
| 23 | value.observe(this.destination);
|
---|
| 24 | };
|
---|
| 25 | return DeMaterializeSubscriber;
|
---|
| 26 | }(Subscriber));
|
---|
| 27 | //# sourceMappingURL=dematerialize.js.map
|
---|
Note:
See
TracBrowser
for help on using the repository browser.