item: increase parent length only if parentSub=null
This commit is contained in:
@@ -441,7 +441,7 @@ export class Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// adjust the length of parent
|
// adjust the length of parent
|
||||||
if (parent.length !== undefined && this._countable) {
|
if (parentSub === null && parent.length !== undefined && this._countable) {
|
||||||
parent.length += this._length
|
parent.length += this._length
|
||||||
}
|
}
|
||||||
if (parent._deleted) {
|
if (parent._deleted) {
|
||||||
|
|||||||
Reference in New Issue
Block a user