@fruit-ui/core 1.2.1 → 1.2.2

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/README.md CHANGED
@@ -75,4 +75,4 @@ Ongoing development on FRUIT focuses on:
75
75
  - Benchmarks against other JS frameworks
76
76
  - Basic built-in components
77
77
 
78
- This project's initial release is currently not yet finished, so contributions aren't currently being sought out.
78
+ Contributions aren't currently being sought out. Please feel free to open an issue or reach out to [asantagata225@gmail.com](mailto:asantagata225@gmail.com) with any suggestions etc.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fruit-ui/core",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "A vanilla JS toolkit for reactive UI",
5
5
  "main": "src/index.js",
6
6
  "homepage": "https://asantagata.github.io/fruit-ui/",
package/src/index.js CHANGED
@@ -210,7 +210,7 @@ function createElementFromTemplate(template, onMounts, producer = null) {
210
210
  }
211
211
  if (template.innerHTML) {
212
212
  element.innerHTML = template.innerHTML;
213
- } else if ('children' in template) {
213
+ } else if (template.children !== undefined) {
214
214
  if (Array.isArray(template.children)) {
215
215
  element.replaceChildren(
216
216
  ...template.children.map(ct => createElementFromElementable.call(this, ct, onMounts))