38 lines
1.3 KiB
JavaScript
38 lines
1.3 KiB
JavaScript
/** PURE_IMPORTS_START ._Subscriber PURE_IMPORTS_END */
|
|
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 __());
|
|
};
|
|
import { Subscriber } from './Subscriber';
|
|
/**
|
|
* We need this JSDoc comment for affecting ESDoc.
|
|
* @ignore
|
|
* @extends {Ignored}
|
|
*/
|
|
export var InnerSubscriber = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
|
|
__extends(InnerSubscriber, _super);
|
|
function InnerSubscriber(parent, outerValue, outerIndex) {
|
|
_super.call(this);
|
|
this.parent = parent;
|
|
this.outerValue = outerValue;
|
|
this.outerIndex = outerIndex;
|
|
this.index = 0;
|
|
}
|
|
InnerSubscriber.prototype._next = function (value) {
|
|
this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
|
|
};
|
|
InnerSubscriber.prototype._error = function (error) {
|
|
this.parent.notifyError(error, this);
|
|
this.unsubscribe();
|
|
};
|
|
InnerSubscriber.prototype._complete = function () {
|
|
this.parent.notifyComplete(this);
|
|
this.unsubscribe();
|
|
};
|
|
return InnerSubscriber;
|
|
}(Subscriber));
|
|
//# sourceMappingURL=InnerSubscriber.js.map
|