neo.mjs 6.6.4 → 6.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.
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='6.6.4'
23
+ * @member {String} version='6.6.5'
24
24
  */
25
- version: '6.6.4'
25
+ version: '6.6.5'
26
26
  }
27
27
 
28
28
  /**
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='6.6.4'
23
+ * @member {String} version='6.6.5'
24
24
  */
25
- version: '6.6.4'
25
+ version: '6.6.5'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "6.6.4",
3
+ "version": "6.6.5",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -236,12 +236,12 @@ const DefaultConfig = {
236
236
  useVdomWorker: true,
237
237
  /**
238
238
  * buildScripts/injectPackageVersion.mjs will update this value
239
- * @default '6.6.4'
239
+ * @default '6.6.5'
240
240
  * @memberOf! module:Neo
241
241
  * @name config.version
242
242
  * @type String
243
243
  */
244
- version: '6.6.4'
244
+ version: '6.6.5'
245
245
  };
246
246
 
247
247
  Object.assign(DefaultConfig, {
package/src/util/VDom.mjs CHANGED
@@ -341,7 +341,8 @@ class VDom extends Base {
341
341
  }
342
342
 
343
343
  /**
344
- * Neo.vdom.Helper will create ids for each vnode, so we need to sync them into the vdom
344
+ * Neo.vdom.Helper will create ids for each vnode which does not already have one,
345
+ * so we need to sync them into the vdom.
345
346
  * @param {Neo.vdom.VNode} vnode
346
347
  * @param {Object} vdom
347
348
  */
@@ -350,7 +351,9 @@ class VDom extends Base {
350
351
  let childNodes = vdom.cn,
351
352
  cn, i, len;
352
353
 
353
- if (vnode.id && vnode.id !== vdom.id) {
354
+ // we only want to change vdom ids in case there is not already an own id
355
+ // (think of adding & removing nodes in parallel)
356
+ if (!vdom.id && vnode.id) {
354
357
  vdom.id = vnode.id;
355
358
  }
356
359