From 0b9e7d5fa20a22611e077b1b7fb50c16ee0cb672 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 20 Nov 2017 20:44:58 -0800 Subject: [PATCH] Don't use custom element constructor (#658) --- panels/config/automation/ha-automation-editor.html | 4 ++-- panels/config/script/ha-script-editor.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/panels/config/automation/ha-automation-editor.html b/panels/config/automation/ha-automation-editor.html index 9397b691ee..85cffe0585 100644 --- a/panels/config/automation/ha-automation-editor.html +++ b/panels/config/automation/ha-automation-editor.html @@ -165,8 +165,8 @@ class HaAutomationEditor extends window.hassMixins.EventsMixin(Polymer.Element) }; } - constructor() { - super(); + ready() { + super.ready(); this.configChanged = this.configChanged.bind(this); this._rendered = null; } diff --git a/panels/config/script/ha-script-editor.html b/panels/config/script/ha-script-editor.html index fadfbbfa7d..0b82213bfa 100644 --- a/panels/config/script/ha-script-editor.html +++ b/panels/config/script/ha-script-editor.html @@ -164,8 +164,8 @@ class HaScriptEditor extends window.hassMixins.EventsMixin(Polymer.Element) { }; } - constructor() { - super(); + ready() { + super.ready(); this.configChanged = this.configChanged.bind(this); this._rendered = null; }