29 lines
1.0 KiB
JavaScript
29 lines
1.0 KiB
JavaScript
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
|
import * as tslib_1 from "tslib";
|
|
import { Subscriber } from './Subscriber';
|
|
var InnerSubscriber = /*@__PURE__*/ (function (_super) {
|
|
tslib_1.__extends(InnerSubscriber, _super);
|
|
function InnerSubscriber(parent, outerValue, outerIndex) {
|
|
var _this = _super.call(this) || this;
|
|
_this.parent = parent;
|
|
_this.outerValue = outerValue;
|
|
_this.outerIndex = outerIndex;
|
|
_this.index = 0;
|
|
return _this;
|
|
}
|
|
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));
|
|
export { InnerSubscriber };
|
|
//# sourceMappingURL=InnerSubscriber.js.map
|