Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- in the clear case, `fromData` would set `this._data = pointGroups`, which made the pointer the same as the one for the parameter - as `this._data` is internally mutated, this would cause the input parameter to also be mutated as a side-effect - this input mutation side-effect is likely unintended, so patched it so that the data is cloned in _all_ cases, not only in the append case - in the clear case, `this._data` is set to an empty array by `this.clear()`, so this is equivalent to `[].concat(pointGroups)`, which will result in them all being cloned
- Loading branch information