From b01822abc6b0cbb540c8095b935eff6df0fcffcc Mon Sep 17 00:00:00 2001 From: Tim Oxley Date: Sun, 16 Nov 2014 14:51:11 +0800 Subject: [PATCH] `this` is not guaranteed to be the root scope Better to be explicit and use `window`. --- src/TemplateBinding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TemplateBinding.js b/src/TemplateBinding.js index 374561a..9906c5b 100644 --- a/src/TemplateBinding.js +++ b/src/TemplateBinding.js @@ -1283,4 +1283,4 @@ // Polyfill-specific API. HTMLTemplateElement.forAllTemplatesFrom_ = forAllTemplatesFrom; -})(this); +})(window);