UI for Zipcoin Blue

OuterSubscriber.js 1.1KB

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. var __extends = (this && this.__extends) || function (d, b) {
  3. for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
  4. function __() { this.constructor = d; }
  5. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  6. };
  7. var Subscriber_1 = require('./Subscriber');
  8. /**
  9. * We need this JSDoc comment for affecting ESDoc.
  10. * @ignore
  11. * @extends {Ignored}
  12. */
  13. var OuterSubscriber = (function (_super) {
  14. __extends(OuterSubscriber, _super);
  15. function OuterSubscriber() {
  16. _super.apply(this, arguments);
  17. }
  18. OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  19. this.destination.next(innerValue);
  20. };
  21. OuterSubscriber.prototype.notifyError = function (error, innerSub) {
  22. this.destination.error(error);
  23. };
  24. OuterSubscriber.prototype.notifyComplete = function (innerSub) {
  25. this.destination.complete();
  26. };
  27. return OuterSubscriber;
  28. }(Subscriber_1.Subscriber));
  29. exports.OuterSubscriber = OuterSubscriber;
  30. //# sourceMappingURL=OuterSubscriber.js.map