Martin Guillon
65b1cdbae0
fix(core): Observable splice index > length ( #8900 )
...
* fix for splice index > length
In javascript you can call splice with an index > length. The result is a push.
But when you do that ObservableArray index will be wrong and thus user logic will fail.
Example:
```ts
// obsarray = [0];
obsarray.splice(2, 0, 1);
// this works, the inner array is now [0,1]
// however 'change' is called with index = 2
// when the use tries to do obsarray.getItem(eventData.index) -> crash
```
* fix to handle delete too
2020-09-27 09:20:52 -07:00
..
2020-09-25 15:58:39 -07:00
2020-08-25 20:00:59 -07:00
2020-09-25 15:58:39 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-09-25 15:58:39 -07:00
2020-09-25 15:58:39 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-09-27 09:20:52 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-09-25 15:58:39 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-09-25 22:59:47 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-09-23 14:48:19 -07:00
2020-08-25 20:00:59 -07:00
2020-09-09 09:15:57 -07:00
2020-09-25 15:58:39 -07:00
2020-09-25 15:58:39 -07:00
2020-08-25 20:00:59 -07:00
2020-09-25 23:03:04 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00
2020-08-25 20:00:59 -07:00