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 +1 -1
- package/normal/template.js +7 -3
- package/package.json +1 -1
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
|
|
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
|
}
|
package/normal/template.js
CHANGED
|
@@ -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
|
-
|
|
26
|
-
|
|
29
|
+
render(child,el._context,isResume?notRender:{ notRender: null, index: null })
|
|
30
|
+
})
|
|
27
31
|
}
|