Skip to content

Commit 8eee1d6

Browse files
committed
Improve efficiency
1 parent 00b0538 commit 8eee1d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tApp.js

Lines changed: 3 additions & 3 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.3";
12+
return "v0.10.4";
1313
}
1414
static configure(params) {
1515
if(params == null) {
@@ -1050,7 +1050,7 @@ tApp.Component = class {
10501050
#children;
10511051
constructor(state, parent = "global") {
10521052
this.#id = new Date().toJSON() + "::" + Math.random().toString(36).substr(2) + "::" + Math.random().toString(36).substr(2);
1053-
if(parent != "") {
1053+
if(parent != null) {
10541054
if(typeof parent == "string") {
10551055
this.#parent = tApp.getComponent(parent);
10561056
} else {
@@ -1144,7 +1144,7 @@ tApp.GlobalComponent = (function() {
11441144
class GlobalComponent extends tApp.Component {
11451145
#id;
11461146
constructor(state, parent) {
1147-
super(state, "");
1147+
super(state, null);
11481148
}
11491149
render(props) {
11501150
return "<div></div>";

0 commit comments

Comments
 (0)