eligius 1.0.18 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -564,9 +564,17 @@ var Action = /*#__PURE__*/function () {
564
564
 
565
565
  _proto._pushContext = function _pushContext(parentContext) {
566
566
  var newContext = {
567
- currentIndex: parentContext.currentIndex,
567
+ get currentIndex() {
568
+ return parentContext.currentIndex;
569
+ },
570
+
571
+ set currentIndex(value) {
572
+ parentContext.currentIndex = value;
573
+ },
574
+
568
575
  eventbus: parentContext.eventbus,
569
- operations: parentContext.operations
576
+ operations: parentContext.operations,
577
+ parent: parentContext
570
578
  };
571
579
 
572
580
  this._contextStack.push(newContext);
@@ -575,10 +583,7 @@ var Action = /*#__PURE__*/function () {
575
583
  };
576
584
 
577
585
  _proto._popContext = function _popContext() {
578
- var previousContext = this._contextStack.pop();
579
-
580
- var newCurrentContext = this._contextStack[this._contextStack.length - 1];
581
- newCurrentContext.currentIndex = previousContext.currentIndex;
586
+ this._contextStack.pop();
582
587
  };
583
588
 
584
589
  _proto.executeOperation = function executeOperation(operations, idx, resolve, reject, previousOperationData) {