فهرست منبع

remove faulty nodeType check when parsing template

Evan You 12 سال پیش
والد
کامیت
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)
     }
   }