dematerialize.js 1.0 KB

123456789101112131415161718192021222324252627
  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