Skip to content

Commit

Permalink
Avoid using this.constructor here
Browse files Browse the repository at this point in the history
  • Loading branch information
kapouer committed Feb 14, 2020
1 parent 2e3a9d9 commit a5bbd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/site/ui/template.js
Expand Up @@ -38,7 +38,7 @@ class HTMLElementTemplate extends HTMLCustomElement {
}

patch(state) {
this.constructor.prepareTemplate(this.firstElementChild);
HTMLElementTemplate.prepareTemplate(this.firstElementChild);
if (this.isContentEditable || this._refreshing || this.closest('[block-content="template"]')) return;
// first find out if state.query has a key in this.keys
// what do we do if state.query has keys that are used by a form in this query template ?
Expand Down

0 comments on commit a5bbd62

Please sign in to comment.