File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -992,12 +992,26 @@ export default class DatasetController {
992992 const me = this ;
993993 const meta = me . _cachedMeta ;
994994 const data = meta . data ;
995+ const end = start + count ;
995996 let i ;
996997
997- for ( i = start ; i < start + count ; ++ i ) {
998+ data . length += count ;
999+
1000+ for ( i = data . length - 1 ; i >= end ; i -- ) {
1001+ data [ i ] = data [ i - count ] ;
1002+ }
1003+
1004+ for ( i = start ; i < end ; ++ i ) {
9981005 data [ i ] = new me . dataElementType ( ) ;
9991006 }
10001007
1008+ if ( me . _parsing ) {
1009+ const parsed = meta . _parsed ;
1010+ parsed . length += count ;
1011+ for ( i = parsed . length - 1 ; i >= end ; i -- ) {
1012+ parsed [ i ] = parsed [ i - count ] ;
1013+ }
1014+ }
10011015 me . parse ( start , count ) ;
10021016
10031017 if ( resetNewElements ) {
You can’t perform that action at this time.
0 commit comments