Skip to content

Commit b0b7f65

Browse files
committed
Added updateDOM helper
1 parent e1ba280 commit b0b7f65

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tApp.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class tApp {
99
static currentHash = "/";
1010
static debugComponentTiming;
1111
static get version() {
12-
return "v0.10.5";
12+
return "v0.10.6";
1313
}
1414
static configure(params) {
1515
if(params == null) {
@@ -425,6 +425,9 @@ class tApp {
425425
return true;
426426
}
427427
}
428+
static updateDOM() {
429+
tApp.updateComponent(tApp.GlobalComponent);
430+
}
428431
static updateComponent(component) {
429432
let updateStartTime;
430433
if(tApp.debugComponentTiming != null && component.id == "global") {
@@ -1121,7 +1124,7 @@ tApp.Component = class {
11211124
return state;
11221125
}
11231126
this.state = recursivelySetState(key, val, this.state);
1124-
tApp.updateComponent(tApp.GlobalComponent);
1127+
tApp.updateDOM();
11251128
return val;
11261129
}
11271130
render(props) {

0 commit comments

Comments
 (0)