34 lines
1.3 KiB
JavaScript
34 lines
1.3 KiB
JavaScript
"use strict";
|
|
var __extends = (this && this.__extends) || function (d, b) {
|
|
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
var Subscriber_1 = require('../Subscriber');
|
|
/**
|
|
* Returns an Observable that transforms Notification objects into the items or notifications they represent.
|
|
* @returns {Observable} an Observable that emits items and notifications embedded in Notification objects emitted by the source Observable.
|
|
*/
|
|
function dematerialize() {
|
|
return this.lift(new DeMaterializeOperator());
|
|
}
|
|
exports.dematerialize = dematerialize;
|
|
var DeMaterializeOperator = (function () {
|
|
function DeMaterializeOperator() {
|
|
}
|
|
DeMaterializeOperator.prototype.call = function (subscriber) {
|
|
return new DeMaterializeSubscriber(subscriber);
|
|
};
|
|
return DeMaterializeOperator;
|
|
}());
|
|
var DeMaterializeSubscriber = (function (_super) {
|
|
__extends(DeMaterializeSubscriber, _super);
|
|
function DeMaterializeSubscriber(destination) {
|
|
_super.call(this, destination);
|
|
}
|
|
DeMaterializeSubscriber.prototype._next = function (value) {
|
|
value.observe(this.destination);
|
|
};
|
|
return DeMaterializeSubscriber;
|
|
}(Subscriber_1.Subscriber));
|
|
//# sourceMappingURL=dematerialize.js.map
|