targetj 1.0.31 → 1.0.32

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/App.js +4 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "targetj",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "keywords": [
5
5
  "targetj"
6
6
  ],
package/src/App.js CHANGED
@@ -11,7 +11,7 @@ import { TModelManager } from "./TModelManager.js";
11
11
  import { TUtil } from "./TUtil.js";
12
12
  import { TargetManager } from "./TargetManager.js";
13
13
 
14
- var tapp;
14
+ var tapp, events;
15
15
 
16
16
  function Application(tmodel, rootId) {
17
17
 
@@ -144,15 +144,13 @@ function Application(tmodel, rootId) {
144
144
 
145
145
  function App(tmodel, rootId) {
146
146
  tapp = Application(tmodel, rootId);
147
+ events = tapp.events;
148
+
147
149
  tapp.init().start();
148
- return tapp;
149
- }
150
150
 
151
- function events() {
152
- return tapp ? tapp.events : null;
151
+ return tapp;
153
152
  }
154
153
 
155
-
156
154
  window.t = window.t || SearchUtil.find;
157
155
  App.oids = {};
158
156
  App.getOid = function(type) {