From 0e86fb944a7647fb4c248ed0ff46b5f29068ea56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E7=93=9C=E4=B8=B8?= Date: Sun, 20 Dec 2020 23:41:06 +0900 Subject: [PATCH] [fix] --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 5023416..ac5b683 100644 --- a/main.js +++ b/main.js @@ -35,7 +35,7 @@ export class Store{ } update(state) { this.state = state; - this.element.update(); + this.element._update(); } } @@ -94,7 +94,7 @@ export class Component extends HTMLElement{ }, ...args)); } render(){ return html``; } - async update(){ + async _update(){ const {strings, values} = this.render({ ...this, state: this.state,