Explorar o código

double clone bug

The previous statement already cloned the fragment
David Yu %!s(int64=12) %!d(string=hai) anos
pai
achega
c922003f04
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/directives/partial.js

+ 2 - 2
src/directives/partial.js

@@ -42,9 +42,9 @@ module.exports = {
 
             // just set innerHTML...
             el.innerHTML = ''
-            el.appendChild(partial.cloneNode(true))
+            el.appendChild(partial)
 
         }
     }
 
-}
+}