From c922003f043ada95657d16cb4cf619fb0b38f002 Mon Sep 17 00:00:00 2001 From: David Yu Date: Thu, 15 May 2014 16:45:49 +0800 Subject: [PATCH 1/2] double clone bug The previous statement already cloned the fragment --- src/directives/partial.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/directives/partial.js b/src/directives/partial.js index 53d19ae25de..75d8c306d89 100644 --- a/src/directives/partial.js +++ b/src/directives/partial.js @@ -42,9 +42,9 @@ module.exports = { // just set innerHTML... el.innerHTML = '' - el.appendChild(partial.cloneNode(true)) + el.appendChild(partial) } } -} \ No newline at end of file +} From a487821461148c9fa175a4b6bba622c4a97b679a Mon Sep 17 00:00:00 2001 From: dyu Date: Thu, 15 May 2014 16:47:28 +0800 Subject: [PATCH 2/2] strip newline at end --- src/directives/partial.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directives/partial.js b/src/directives/partial.js index 75d8c306d89..4086742d161 100644 --- a/src/directives/partial.js +++ b/src/directives/partial.js @@ -47,4 +47,4 @@ module.exports = { } } -} +} \ No newline at end of file