Skip to content

Commit

Permalink
fix(StaticViewStrategy): use DOM.Element instead of HTMLTemplateElement
Browse files Browse the repository at this point in the history
  • Loading branch information
bigopon authored and EisenbergEffect committed Sep 20, 2018
1 parent fe4db77 commit f9fb639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view-strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export class StaticViewStrategy {
factory: ViewFactory;

constructor(config: string | HTMLTemplateElement | IStaticViewConfig) {
if (typeof config === 'string' || config instanceof HTMLTemplateElement) {
if (typeof config === 'string' || (config instanceof DOM.Element && config.tagName === 'TEMPLATE')) {
config = {
template: config
};
Expand Down

0 comments on commit f9fb639

Please sign in to comment.