From b0b7f65914226cdb37eed9c78ffc21f7c3f6ffe2 Mon Sep 17 00:00:00 2001 From: CMEONE Date: Wed, 17 Mar 2021 17:54:40 -0700 Subject: [PATCH] Added updateDOM helper --- tApp.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tApp.js b/tApp.js index 1c3b4c6..83b56be 100644 --- a/tApp.js +++ b/tApp.js @@ -9,7 +9,7 @@ class tApp { static currentHash = "/"; static debugComponentTiming; static get version() { - return "v0.10.5"; + return "v0.10.6"; } static configure(params) { if(params == null) { @@ -425,6 +425,9 @@ class tApp { return true; } } + static updateDOM() { + tApp.updateComponent(tApp.GlobalComponent); + } static updateComponent(component) { let updateStartTime; if(tApp.debugComponentTiming != null && component.id == "global") { @@ -1121,7 +1124,7 @@ tApp.Component = class { return state; } this.state = recursivelySetState(key, val, this.state); - tApp.updateComponent(tApp.GlobalComponent); + tApp.updateDOM(); return val; } render(props) {