@fluid-experimental/property-properties 0.47.0-36362 → 0.48.0-38105

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.
@@ -800,26 +800,26 @@ ArrayProperty.prototype._applyChangeset = function (in_changeSet, in_reportToVie
800
800
  if (!this._isPrimitive) {
801
801
  // Successively apply the changes from the changeSet
802
802
  while (!arrayIterator.atEnd()) {
803
- switch (arrayIterator.type) {
803
+ switch (arrayIterator.opDescription.type) {
804
804
  case ArrayChangeSetIterator.types.INSERT:
805
805
  // Handle inserts
806
- var propertyDescriptions = arrayIterator.operation[1];
806
+ var propertyDescriptions = arrayIterator.opDescription.operation[1];
807
807
  var scope = this._getScope();
808
808
  var insertedPropertyInstances = deserializeNonPrimitiveArrayElements(propertyDescriptions, scope);
809
- this._insertRangeWithoutDirtying(arrayIterator.operation[0] + arrayIterator.offset, this._deserializeArray(insertedPropertyInstances));
809
+ this._insertRangeWithoutDirtying(arrayIterator.opDescription.operation[0] + arrayIterator.opDescription.offset, this._deserializeArray(insertedPropertyInstances));
810
810
  break;
811
811
  case ArrayChangeSetIterator.types.REMOVE:
812
812
  // Handle removes
813
- var numRemoved = arrayIterator.operation[1];
813
+ var numRemoved = arrayIterator.opDescription.operation[1];
814
814
  if (!_.isNumber(numRemoved)) {
815
815
  numRemoved = numRemoved.length;
816
816
  }
817
- this._removeRangeWithoutDirtying(arrayIterator.operation[0] + arrayIterator.offset, numRemoved);
817
+ this._removeRangeWithoutDirtying(arrayIterator.opDescription.operation[0] + arrayIterator.opDescription.offset, numRemoved);
818
818
  break;
819
819
  case ArrayChangeSetIterator.types.MODIFY:
820
820
  // Handle modifies
821
- var propertyDescriptions = arrayIterator.operation[1];
822
- var startIndex = arrayIterator.operation[0] + arrayIterator.offset;
821
+ var propertyDescriptions = arrayIterator.opDescription.operation[1];
822
+ var startIndex = arrayIterator.opDescription.operation[0] + arrayIterator.opDescription.offset;
823
823
  for (var i = 0; i < propertyDescriptions.length; ++i) {
824
824
  var modifiedProperty = this.get(startIndex + i, { referenceResolutionMode: BaseProperty.REFERENCE_RESOLUTION.NEVER });
825
825
  if (!modifiedProperty) {
@@ -829,7 +829,7 @@ ArrayProperty.prototype._applyChangeset = function (in_changeSet, in_reportToVie
829
829
  }
830
830
  break;
831
831
  default:
832
- console.error('applyChangeset: ' + MSG.UNKNOWN_OPERATION + arrayIterator.type);
832
+ console.error('applyChangeset: ' + MSG.UNKNOWN_OPERATION + arrayIterator.opDescription.type);
833
833
  }
834
834
  arrayIterator.next();
835
835
  }
@@ -837,25 +837,25 @@ ArrayProperty.prototype._applyChangeset = function (in_changeSet, in_reportToVie
837
837
  else {
838
838
  // Successively apply the changes from the changeSet
839
839
  while (!arrayIterator.atEnd()) {
840
- switch (arrayIterator.type) {
840
+ switch (arrayIterator.opDescription.type) {
841
841
  case ArrayChangeSetIterator.types.INSERT:
842
842
  // Handle inserts
843
- this._insertRangeWithoutDirtying(arrayIterator.operation[0] + arrayIterator.offset, this._deserializeArray(arrayIterator.operation[1]));
843
+ this._insertRangeWithoutDirtying(arrayIterator.opDescription.operation[0] + arrayIterator.opDescription.offset, this._deserializeArray(arrayIterator.opDescription.operation[1]));
844
844
  break;
845
845
  case ArrayChangeSetIterator.types.REMOVE:
846
846
  // Handle removes
847
- var removeLength = arrayIterator.operation[1];
847
+ var removeLength = arrayIterator.opDescription.operation[1];
848
848
  if (_.isArray(removeLength) || _.isString(removeLength)) {
849
849
  removeLength = removeLength.length;
850
850
  }
851
- this._removeRangeWithoutDirtying(arrayIterator.operation[0] + arrayIterator.offset, removeLength);
851
+ this._removeRangeWithoutDirtying(arrayIterator.opDescription.operation[0] + arrayIterator.opDescription.offset, removeLength);
852
852
  break;
853
853
  case ArrayChangeSetIterator.types.MODIFY:
854
854
  // Handle modifies
855
- this._modifyRangeWithoutDirtying(arrayIterator.operation[0] + arrayIterator.offset, this._deserializeArray(arrayIterator.operation[1]));
855
+ this._modifyRangeWithoutDirtying(arrayIterator.opDescription.operation[0] + arrayIterator.opDescription.offset, this._deserializeArray(arrayIterator.opDescription.operation[1]));
856
856
  break;
857
857
  default:
858
- console.error('applyChangeset: ' + MSG.UNKNOWN_OPERATION + arrayIterator.type);
858
+ console.error('applyChangeset: ' + MSG.UNKNOWN_OPERATION + arrayIterator.opDescription.type);
859
859
  }
860
860
  arrayIterator.next();
861
861
  }
@@ -1288,12 +1288,12 @@ ArrayProperty.prototype._getChangesetForCustomTypeArray = function (in_basePrope
1288
1288
  var op, opStartIndex;
1289
1289
  while (!iterator.atEnd() || currentArrayIndex < currentArraySize) {
1290
1290
  if (!iterator.atEnd()) {
1291
- op = iterator;
1291
+ op = iterator.opDescription;
1292
1292
  opStartIndex = op.operation[0] + op.offset;
1293
1293
  }
1294
1294
  else {
1295
1295
  // no more ops
1296
- op = { offset: iterator.offset };
1296
+ op = { offset: iterator.opDescription.offset };
1297
1297
  opStartIndex = Number.MAX_VALUE;
1298
1298
  }
1299
1299
  if (currentArrayIndex < opStartIndex) {