pawajs 1.4.9 → 1.4.10

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/index.js CHANGED
@@ -900,7 +900,7 @@ const component = (el, resume = false, attr, notRender, stopResume) => {
900
900
  // el has no previous Sibling
901
901
  }
902
902
  el.removeAttribute(attr.name)
903
- const numberComponentChildren = notRender.index + children.length - 1
903
+ const numberComponentChildren = notRender.index -2 + children.length
904
904
  notRender.notRender = numberComponentChildren
905
905
  resumer.resume_component?.(el, attr, setStateContext, mapsPlugins, formerStateContext, pawaContext, stateWatch, { comment, endComment, name, serialized, id, children })
906
906
  }
@@ -13,15 +13,19 @@ export const templates=(el,notRender)=>{
13
13
  pawaWayRemover(comment,endComment)
14
14
  comment.remove(),endComment.remove();
15
15
  }
16
+ if (!endComment.parentElement) {
17
+ return
18
+ }
16
19
  endComment.parentElement.insertBefore(comment,endComment)
20
+
17
21
  el._underControl=comment
18
22
  let element=[]
19
23
  Array.from(el.content.children).forEach((child) => {
20
24
  endComment.parentElement.insertBefore(child,endComment)
21
25
  element.push(child)
22
26
  })
23
-
27
+
24
28
  element.forEach(child=>{
25
- render(child,el._context,isResume?notRender:{ notRender: null, index: null })
26
- })
29
+ render(child,el._context,isResume?notRender:{ notRender: null, index: null })
30
+ })
27
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pawajs",
3
- "version": "1.4.9",
3
+ "version": "1.4.10",
4
4
  "type":"module",
5
5
  "description": "pawajs library (html runtime) for easily building web ui, enhancing html element, micro frontend etc ",
6
6
  "main": "index.js",