UNPKG

1.54 kBJavaScriptView Raw
1"use strict";
2var __extends = (this && this.__extends) || (function () {
3 var extendStatics = Object.setPrototypeOf ||
4 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6 return function (d, b) {
7 extendStatics(d, b);
8 function __() { this.constructor = d; }
9 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10 };
11})();
12Object.defineProperty(exports, "__esModule", { value: true });
13var Subscriber_1 = require("./Subscriber");
14var InnerSubscriber = (function (_super) {
15 __extends(InnerSubscriber, _super);
16 function InnerSubscriber(parent, outerValue, outerIndex) {
17 var _this = _super.call(this) || this;
18 _this.parent = parent;
19 _this.outerValue = outerValue;
20 _this.outerIndex = outerIndex;
21 _this.index = 0;
22 return _this;
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_1.Subscriber));
37exports.InnerSubscriber = InnerSubscriber;
38//# sourceMappingURL=InnerSubscriber.js.map
\No newline at end of file