pawajs 1.4.8 → 1.4.9
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 +8 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -877,10 +877,12 @@ const component = (el, resume = false, attr, notRender, stopResume) => {
|
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
const getEndComment = (comment) => {
|
|
880
|
+
if(endComment) return;
|
|
880
881
|
const isComment = comment.nextSibling
|
|
881
882
|
if (comment.nextSibling.nodeType === 8) {
|
|
882
883
|
if (isComment.data.split('+')[1] === id) {
|
|
883
884
|
endComment = isComment
|
|
885
|
+
return
|
|
884
886
|
} else {
|
|
885
887
|
getEndComment(isComment)
|
|
886
888
|
}
|
|
@@ -891,8 +893,12 @@ const component = (el, resume = false, attr, notRender, stopResume) => {
|
|
|
891
893
|
getEndComment(isComment)
|
|
892
894
|
}
|
|
893
895
|
}
|
|
894
|
-
|
|
895
|
-
|
|
896
|
+
try {
|
|
897
|
+
getComment(el)
|
|
898
|
+
getEndComment(comment)
|
|
899
|
+
} catch (error) {
|
|
900
|
+
// el has no previous Sibling
|
|
901
|
+
}
|
|
896
902
|
el.removeAttribute(attr.name)
|
|
897
903
|
const numberComponentChildren = notRender.index + children.length - 1
|
|
898
904
|
notRender.notRender = numberComponentChildren
|