a zip code crypto-currency system good for red ONLY

InnerSubscriber.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /** PURE_IMPORTS_START ._Subscriber PURE_IMPORTS_END */
  2. var __extends = (this && this.__extends) || function (d, b) {
  3. for (var p in b)
  4. if (b.hasOwnProperty(p))
  5. d[p] = b[p];
  6. function __() { this.constructor = d; }
  7. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  8. };
  9. import { Subscriber } from './Subscriber';
  10. /**
  11. * We need this JSDoc comment for affecting ESDoc.
  12. * @ignore
  13. * @extends {Ignored}
  14. */
  15. export var InnerSubscriber = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
  16. __extends(InnerSubscriber, _super);
  17. function InnerSubscriber(parent, outerValue, outerIndex) {
  18. _super.call(this);
  19. this.parent = parent;
  20. this.outerValue = outerValue;
  21. this.outerIndex = outerIndex;
  22. this.index = 0;
  23. }
  24. InnerSubscriber.prototype._next = function (value) {
  25. this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
  26. };
  27. InnerSubscriber.prototype._error = function (error) {
  28. this.parent.notifyError(error, this);
  29. this.unsubscribe();
  30. };
  31. InnerSubscriber.prototype._complete = function () {
  32. this.parent.notifyComplete(this);
  33. this.unsubscribe();
  34. };
  35. return InnerSubscriber;
  36. }(Subscriber));
  37. //# sourceMappingURL=InnerSubscriber.js.map