From 31e5d058bb2196d66f3b32638782c1bf3bd6c8a4 Mon Sep 17 00:00:00 2001 From: Westbrook Johnson Date: Tue, 15 May 2018 15:24:57 -0400 Subject: [PATCH] Update template docs (#5233) In support of #5222, this updated the `template()` documentation so that it no longer lists support for `typeof template === 'string'` types. --- lib/mixins/element-mixin.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/mixins/element-mixin.js b/lib/mixins/element-mixin.js index a445edaf97..c0b9b6d051 100644 --- a/lib/mixins/element-mixin.js +++ b/lib/mixins/element-mixin.js @@ -32,8 +32,7 @@ import { PropertiesMixin } from './properties-mixin.js'; * * - `static get template()`: Users may provide the template directly (as * opposed to via `dom-module`) by implementing a static `template` getter. - * The getter may return an `HTMLTemplateElement` or a string, which will - * automatically be parsed into a template. + * The getter must return an `HTMLTemplateElement`. * * - `static get properties()`: Should return an object describing * property-related metadata used by Polymer features (key: property name @@ -350,8 +349,7 @@ export const ElementMixin = dedupingMixin(base => { * * Users may override this getter to return an arbitrary template * (in which case the `is` getter is unnecessary). The template returned - * may be either an `HTMLTemplateElement` or a string that will be - * automatically parsed into a template. + * must be an `HTMLTemplateElement`. * * Note that when subclassing, if the super class overrode the default * implementation and the subclass would like to provide an alternate