domql 1.6.34 → 1.6.35

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.34",
4
+ "version": "1.6.35",
5
5
  "repository": "https://github.com/domql/domql",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org"
@@ -39,13 +39,13 @@ export const applyExtend = (element, parent, options = {}) => {
39
39
 
40
40
  // if (parent.childExtendRecursive && (props && !props.ignoreChildExtendRecursive)) {
41
41
  if (parent.childExtendRecursive) {
42
- const canExtendRecursive = props && !props.ignoreChildExtendRecursive && element.key !== '__text'
43
- if (!canExtendRecursive) return
44
-
45
- const childExtendRecursiveStack = getExtendStack(parent.childExtendRecursive)
46
- // add error if childExtendRecursive contains element which goes to infinite loop
47
- childExtendStack = childExtendStack.concat(childExtendRecursiveStack)
48
- element.childExtendRecursive = parent.childExtendRecursive
42
+ const canExtendRecursive = !props?.ignoreChildExtendRecursive && element.key !== '__text'
43
+ if (canExtendRecursive) {
44
+ const childExtendRecursiveStack = getExtendStack(parent.childExtendRecursive)
45
+ // add error if childExtendRecursive contains element which goes to infinite loop
46
+ childExtendStack = childExtendStack.concat(childExtendRecursiveStack)
47
+ element.childExtendRecursive = parent.childExtendRecursive
48
+ }
49
49
  }
50
50
  }
51
51
  }
@@ -72,7 +72,6 @@ export const nextElement = function () {
72
72
 
73
73
  const currentIndex = __children.indexOf(key)
74
74
  const nextChild = __children[currentIndex + 1]
75
- console.log(nextChild)
76
75
 
77
76
  return parent[nextChild]
78
77
  }