From 839c347719d4fccc72093773a4d8e24a922afec8 Mon Sep 17 00:00:00 2001 From: Madara Uchiha Date: Mon, 29 Feb 2016 16:54:50 +0200 Subject: [PATCH 1/8] Set HTMLTemplateElement as a window property Rather than as a global variable, which seems to have troubles with strict mode in a few browsers. Closes #496 --- src/Template/Template.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Template/Template.js b/src/Template/Template.js index fbb09a9c8..95d57b7d8 100644 --- a/src/Template/Template.js +++ b/src/Template/Template.js @@ -225,7 +225,7 @@ } if (needsTemplate) { - HTMLTemplateElement = TemplateImpl; + window.HTMLTemplateElement = TemplateImpl; } -})(); \ No newline at end of file +})(); From 7d7fad8ac258a10257e692a57b1b542860d03725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= Date: Thu, 3 Mar 2016 22:55:22 +0100 Subject: [PATCH 2/8] fixClonedDom: return if source is not an element --- src/Template/Template.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Template/Template.js b/src/Template/Template.js index 95d57b7d8..f39394166 100644 --- a/src/Template/Template.js +++ b/src/Template/Template.js @@ -173,6 +173,8 @@ // subtree and replace them with cloned