Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
653 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | import { Subscriber } from './Subscriber';
|
---|
| 2 | export class InnerSubscriber extends Subscriber {
|
---|
| 3 | constructor(parent, outerValue, outerIndex) {
|
---|
| 4 | super();
|
---|
| 5 | this.parent = parent;
|
---|
| 6 | this.outerValue = outerValue;
|
---|
| 7 | this.outerIndex = outerIndex;
|
---|
| 8 | this.index = 0;
|
---|
| 9 | }
|
---|
| 10 | _next(value) {
|
---|
| 11 | this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
|
---|
| 12 | }
|
---|
| 13 | _error(error) {
|
---|
| 14 | this.parent.notifyError(error, this);
|
---|
| 15 | this.unsubscribe();
|
---|
| 16 | }
|
---|
| 17 | _complete() {
|
---|
| 18 | this.parent.notifyComplete(this);
|
---|
| 19 | this.unsubscribe();
|
---|
| 20 | }
|
---|
| 21 | }
|
---|
| 22 | //# sourceMappingURL=InnerSubscriber.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.