Skip to content

Commit

Permalink
Update template docs (#5233)
Browse files Browse the repository at this point in the history
In support of #5222, this updated the `template()` documentation so that it no longer lists support for `typeof template === 'string'` types.
  • Loading branch information
Westbrook authored and TimvdLippe committed May 15, 2018
1 parent 041e31b commit 31e5d05
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/mixins/element-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 31e5d05

Please sign in to comment.