2018-11-22 16:41:46 +01:00
|
|
|
import { Subscriber } from './Subscriber';
|
|
|
|
export class InnerSubscriber extends Subscriber {
|
|
|
|
constructor(parent, outerValue, outerIndex) {
|
|
|
|
super();
|
|
|
|
this.parent = parent;
|
|
|
|
this.outerValue = outerValue;
|
|
|
|
this.outerIndex = outerIndex;
|
|
|
|
this.index = 0;
|
|
|
|
}
|
|
|
|
_next(value) {
|
|
|
|
this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
|
|
|
|
}
|
|
|
|
_error(error) {
|
|
|
|
this.parent.notifyError(error, this);
|
|
|
|
this.unsubscribe();
|
|
|
|
}
|
|
|
|
_complete() {
|
|
|
|
this.parent.notifyComplete(this);
|
|
|
|
this.unsubscribe();
|
|
|
|
}
|
|
|
|
}
|
2019-06-04 14:29:48 +02:00
|
|
|
//# sourceMappingURL=InnerSubscriber.js.map
|