targetj 1.0.173 → 1.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/App.js +10 -10
- package/package.json +1 -1
package/build/App.js
CHANGED
|
@@ -158,15 +158,6 @@ var AppFn = function AppFn() {
|
|
|
158
158
|
};
|
|
159
159
|
return my;
|
|
160
160
|
};
|
|
161
|
-
if (document.readyState === "loading") {
|
|
162
|
-
document.addEventListener("DOMContentLoaded", function () {
|
|
163
|
-
exports.tApp = tApp = AppFn();
|
|
164
|
-
tApp.init().start();
|
|
165
|
-
});
|
|
166
|
-
} else {
|
|
167
|
-
exports.tApp = tApp = AppFn();
|
|
168
|
-
tApp.init().start();
|
|
169
|
-
}
|
|
170
161
|
var App = exports.App = function App(firstChild) {
|
|
171
162
|
var _tApp;
|
|
172
163
|
if (!((_tApp = tApp) !== null && _tApp !== void 0 && _tApp.tRoot)) {
|
|
@@ -255,4 +246,13 @@ var getDomTModelById = exports.getDomTModelById = function getDomTModelById(id)
|
|
|
255
246
|
var tmodel = App.tmodelIdMap[id];
|
|
256
247
|
return tmodel && tmodel.targets['sourceDom'] ? tmodel : undefined;
|
|
257
248
|
};
|
|
258
|
-
window.t = window.t || getTModelById;
|
|
249
|
+
window.t = window.t || getTModelById;
|
|
250
|
+
var runApp = function runApp() {
|
|
251
|
+
exports.tApp = tApp = AppFn();
|
|
252
|
+
tApp.init().start();
|
|
253
|
+
};
|
|
254
|
+
if (document.readyState === "loading") {
|
|
255
|
+
document.addEventListener("DOMContentLoaded", runApp);
|
|
256
|
+
} else {
|
|
257
|
+
runApp();
|
|
258
|
+
}
|
package/package.json
CHANGED