Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InnerSubscriber.js 653B

12345678910111213141516171819202122
  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