From b8843b4a8d7b199370240e75993d753dcced5fb6 Mon Sep 17 00:00:00 2001 From: Raynos Date: Thu, 9 Jul 2020 13:01:40 +0200 Subject: [PATCH] rename to preventRender --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 756c2196..4c830c92 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ class Tonic extends window.HTMLElement { const state = Tonic._states[super.id] delete Tonic._states[super.id] this._state = state || {} - this.shouldRender = true + this.preventRender = false this.props = {} this.elements = [...this.children] this.elements.__children__ = true @@ -315,7 +315,6 @@ class Tonic extends window.HTMLElement { } connectedCallback () { - this.shouldRender = true this.root = this.shadowRoot || this if (this.wrap) { @@ -355,7 +354,7 @@ class Tonic extends window.HTMLElement { this._id = this._id || Tonic._createId() this.willConnect && this.willConnect() - if (this.shouldRender) { + if (this.preventRender) { if (!this._source) { this._source = this.innerHTML } else {