mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-25 13:35:15 +08:00
22 lines
653 B
JavaScript
22 lines
653 B
JavaScript
|
|
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();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
//# sourceMappingURL=InnerSubscriber.js.map
|