From 2a6c0a2a10b8d5a4f47a59d7085206d0df406278 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Thu, 15 Mar 2018 11:30:06 +0100 Subject: [PATCH] Returning null in template should nullify parent template --- lib/mixins/element-mixin.html | 2 +- test/unit/inheritance.html | 37 ++++++++++++++++++++++++++++++++++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/lib/mixins/element-mixin.html b/lib/mixins/element-mixin.html index 777db15243..d83946cef2 100644 --- a/lib/mixins/element-mixin.html +++ b/lib/mixins/element-mixin.html @@ -311,9 +311,9 @@ } else { template = template.cloneNode(true); } - this.prototype._template = template; } + this.prototype._template = template; } /** diff --git a/test/unit/inheritance.html b/test/unit/inheritance.html index 25c8910427..497bed3b08 100644 --- a/test/unit/inheritance.html +++ b/test/unit/inheritance.html @@ -113,6 +113,24 @@ + + + +