@pirireis/webglobeplugins 0.6.4 → 0.6.5
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.
|
@@ -55,7 +55,7 @@ export class ChainListMap {
|
|
|
55
55
|
const deleteKeys = [];
|
|
56
56
|
const removeSet = new Set(nodeKeys);
|
|
57
57
|
const newChain = []
|
|
58
|
-
for (let i = 0; i < chain.length
|
|
58
|
+
for (let i = 0; i < chain.length; i++) {
|
|
59
59
|
const node = chain[i];
|
|
60
60
|
const dKey = node.__identity__;
|
|
61
61
|
this._indexMap.delete(dKey);
|
|
@@ -68,7 +68,6 @@ export class ChainListMap {
|
|
|
68
68
|
{ // last item case
|
|
69
69
|
const lastItem = chain[chain.length - 1];
|
|
70
70
|
if (removeSet.has(lastItem.key)) {
|
|
71
|
-
this._indexMap.delete(lastItem.__identity__);
|
|
72
71
|
if (chain.length > 1) {
|
|
73
72
|
deleteKeys.push(chain[chain.length - 2].__identity__);
|
|
74
73
|
deleteKeys.push(chain[chain.length - 1].__identity__);
|