native-document 1.0.233 → 1.0.235

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-document",
3
- "version": "1.0.233",
3
+ "version": "1.0.235",
4
4
  "description": "A reactive JavaScript framework that preserves native DOM simplicity without sacrificing modern features",
5
5
  "author": "AfroCodeur <https://github.com/afrocodeur>",
6
6
  "license": "MIT",
@@ -165,7 +165,7 @@ HasListItem.prototype.from = function(source, builder) {
165
165
  }
166
166
  const item = builder(...args);
167
167
  item.$description.value = args[0];
168
- item.$parent = this;
168
+ item.$parent = this.$parent || this;
169
169
  return item;
170
170
  };
171
171
  return this;
@@ -6,7 +6,7 @@ import ForEachArrayCache from './for-each-array-cache';
6
6
 
7
7
  const CREATE_AND_CACHE_ACTIONS = new Set(['clear', 'push', 'unshift', 'replace']);
8
8
 
9
- const SELF_RENDER = (item) => ElementCreator.getChild(item);
9
+ const SELF_RENDER = (item) => item;
10
10
 
11
11
  /**
12
12
  * Renders items from an ObservableArray with optimized array-specific updates.
@@ -21,9 +21,9 @@ export default function ListGroupRender($desc, instance) {
21
21
  }
22
22
 
23
23
  if ($desc.collapsable && $desc.collapsed) {
24
- content.push(ShowIf($desc.collapsed, () => Ul({ class: 'list-group-items' }, ForEachArray($desc.items))));
24
+ content.push(ShowIf($desc.collapsed, () => Ul({ class: 'list-group-items' }, ForEachArray($desc.items, $desc.itemBuilder))));
25
25
  } else {
26
- content.push(Ul({ class: 'list-group-items' }, ForEachArray($desc.items)));
26
+ content.push(Ul({ class: 'list-group-items' }, ForEachArray($desc.items, $desc.itemBuilder)));
27
27
  }
28
28
 
29
29
  return Li(instance.resolveProps(), content);