@@ -1031,7 +1031,6 @@ export class Delta {
10311031 return this . name === other . name && fun . equalityDeep ( this . attrs , other . attrs ) && fun . equalityDeep ( this . children , other . children ) && this . childCnt === other . childCnt
10321032 }
10331033
1034-
10351034 /**
10361035 * @return {DeltaBuilder<NodeName,Attrs,Children,Text,Schema> }
10371036 */
@@ -1491,7 +1490,7 @@ export class DeltaBuilder extends Delta {
14911490 } else if ( $retainOp . check ( op ) ) {
14921491 let retainLen = op . length
14931492
1494- if ( offset > 0 && opsI != null && op . format != null && ! $deleteOp . check ( opsI ) && ! object . every ( op . format , ( v , k ) => fun . equalityDeep ( v , /** @type {InsertOp<any>|RetainOp|ModifyOp } */ ( opsI ) . format ?. [ k ] || null ) ) ) {
1493+ if ( offset > 0 && opsI != null && op . format != null && ! $deleteOp . check ( opsI ) && ! object . every ( op . format , ( v , k ) => fun . equalityDeep ( v , /** @type {InsertOp<any>|RetainOp|ModifyOp } */ ( opsI ) . format ?. [ k ] || null ) ) ) {
14951494 // need to split current op
14961495 const cpy = scheduleForMerge ( opsI . clone ( offset ) )
14971496 opsI . _splice ( offset , opsI . length - offset )
@@ -1778,7 +1777,7 @@ export class DeltaBuilder extends Delta {
17781777 */
17791778 append ( other ) {
17801779 const children = this . children
1781- let prevLast = children . end
1780+ const prevLast = children . end
17821781 // @todo Investigate. Above is a typescript issue. It is necessary to cast OtherDelta to a Delta first before
17831782 // inferring type, otherwise Children will contain Text.
17841783 for ( const child of other . children ) {
@@ -1982,7 +1981,7 @@ export const $deltaBuilderAny = /** @type {any} */ (s.$instanceOf(DeltaBuilder))
19821981 * @param {T | null } b
19831982 */
19841983export const mergeAttrs = ( a , b ) => object . isEmpty ( a )
1985- ? ( object . isEmpty ( b ) ? null : b )
1984+ ? ( object . isEmpty ( b ) ? null : b )
19861985 : ( object . isEmpty ( b ) ? a : object . assign ( { } , a , b ) )
19871986
19881987/**
0 commit comments