فهرست منبع

fix(morph): currentNode can also be null, not just undefined, fixes #3728 (#3729)

Florian Stascheck 1 سال پیش
والد
کامیت
b0b66d0408
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/morph/src/morph.js

+ 1 - 1
packages/morph/src/morph.js

@@ -403,7 +403,7 @@ class Block {
 
         let currentNode = this.startComment.nextSibling
 
-        while (currentNode !== undefined && currentNode !== this.endComment) {
+        while (currentNode && currentNode !== this.endComment) {
             children.push(currentNode)
 
             currentNode = currentNode.nextSibling