2
0
Эх сурвалжийг харах

remove faulty nodeType check when parsing template

Evan You 12 жил өмнө
parent
commit
012576aa5e
1 өөрчлөгдсөн 1 нэмэгдсэн , 3 устгасан
  1. 1 3
      src/parse/template.js

+ 1 - 3
src/parse/template.js

@@ -74,9 +74,7 @@ function stringToFragment (templateString) {
     var child
     /* jshint boss:true */
     while (child = node.firstChild) {
-      if (node.nodeType === 1) {
-        frag.appendChild(child)
-      }
+      frag.appendChild(child)
     }
   }