domql 1.6.60 → 1.6.61

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,7 +1,7 @@
1
1
  {
2
2
  "name": "domql",
3
3
  "description": "DOM rendering Javascript framework at early stage.",
4
- "version": "1.6.60",
4
+ "version": "1.6.61",
5
5
  "repository": "https://github.com/domql/domql",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org"
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { isObject, exec, isFunction, isNumber, isString } from '@domql/utils'
3
+ import { isObject, exec, isFunction, isNumber, isString, isObjectLike } from '@domql/utils'
4
4
  import { METHODS_EXL, checkIfKeyIsComponent, extendizeByKey, isVariant, overwrite } from './utils'
5
5
  import { isMethod } from '@domql/methods'
6
6
 
@@ -30,18 +30,18 @@ export const throughUpdatedExec = (element, options = { excludes: METHODS_EXL })
30
30
  const newExec = ref.__exec[param](element, element.state, element.context)
31
31
  const execReturnsString = isString(newExec) || isNumber(newExec)
32
32
  // if (prop && prop.node && execReturnsString) {
33
- if (prop && prop.node) {
34
- if (execReturnsString) {
35
- overwrite(prop, { text: newExec }, options)
36
- } else if (checkIfKeyIsComponent(param)) {
33
+ if (prop && prop.node && execReturnsString) {
34
+ overwrite(prop, { text: newExec }, options)
35
+ } else if (newExec !== prop) {
36
+ if (checkIfKeyIsComponent(param)) {
37
37
  const { extend, ...newElem } = extendizeByKey(newExec, element, param)
38
38
  overwrite(prop, newElem, options)
39
+ // } else {
40
+ // overwrite(prop, newExec, options)
39
41
  } else {
40
- overwrite(prop, newExec, options)
42
+ ref.__cached[param] = changes[param] = prop
43
+ element[param] = newExec
41
44
  }
42
- } else if (newExec !== prop) {
43
- ref.__cached[param] = changes[param] = prop
44
- element[param] = newExec
45
45
  }
46
46
  }
47
47