@fruit-ui/core 1.3.2 → 1.3.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fruit-ui/core",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
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
@@ -469,7 +469,7 @@ function rerenderElementFromTemplate(element, template, onMounts) {
469
469
  function deepEqual(a, b) {
470
470
  if (typeof a !== typeof b) return false;
471
471
  if (typeof a === 'function') return true;
472
- if (typeof a === 'object' && a !== null) {
472
+ if (typeof a === 'object' && a !== null && b !== null) {
473
473
  if (typeof a[Symbol.iterator] === "function") { // is iterable
474
474
  if (a.length === b.length && a.size === b.size) {
475
475
  const itA = a[Symbol.iterator](), itB = b[Symbol.iterator]();