@plcmp/pl-virtual-scroll 1.0.4 → 1.0.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plcmp/pl-virtual-scroll",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Component for lazy list render.",
5
5
  "main": "pl-virtual-scroll.js",
6
6
  "repository": {
@@ -102,8 +102,8 @@ class PlVirtualScroll extends PlElement {
102
102
  break;
103
103
 
104
104
  case 'splice': {
105
- let { index: spliceIndex } = mutation;
106
- if (Number(index) >= 0) {
105
+ const { index: spliceIndex } = mutation;
106
+ if (Number(spliceIndex) >= 0) {
107
107
  // if mutation is not root try to apply effects to children (need when pushing to array inside array)
108
108
  if (rest.length > 0) {
109
109
  let path = [this.as, ...rest].join('.');