targetj 1.0.147 → 1.0.148

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/README.md CHANGED
@@ -165,7 +165,7 @@ App(new TModel('apiCall', {
165
165
  getLoader().fetch(this, "https://targetjs.io/api/randomUser", { id: "user0" });
166
166
  getLoader().fetch(this, "https://targetjs.io/api/randomUser", { id: "user1" });
167
167
  },
168
- _displayName$() {
168
+ _displayName$$() {
169
169
  const [ user0, user1 ] = this.prevTargetValue;
170
170
  this.setTarget("html", `${user0.name} ${user1.name}`);
171
171
  },
@@ -104,13 +104,15 @@ var BaseModel = exports.BaseModel = /*#__PURE__*/function () {
104
104
  this.delVal('key');
105
105
  return;
106
106
  }
107
- if (_typeof(target) !== 'object' || Array.isArray(target)) {
108
- this.targets[key] = {
109
- value: target
110
- };
111
- target = this.targets[key];
107
+ if (!_TargetData.TargetData.controlTargetMap[key]) {
108
+ if (_typeof(target) !== 'object' || Array.isArray(target)) {
109
+ this.targets[key] = {
110
+ value: target
111
+ };
112
+ target = this.targets[key];
113
+ }
114
+ _TargetUtil.TargetUtil.bindTarget(this, key, targetNames);
112
115
  }
113
- _TargetUtil.TargetUtil.bindTarget(this, key, targetNames);
114
116
  var cleanKey = _TargetUtil.TargetUtil.getTargetName(key);
115
117
  var isInactiveKey = key.startsWith('_');
116
118
  if (cleanKey !== key) {
@@ -172,6 +172,15 @@ _defineProperty(TargetData, "bypassInitialProcessingTargetMap", {
172
172
  onPageClose: true,
173
173
  onVisible: true
174
174
  });
175
+ _defineProperty(TargetData, "controlTargetMap", {
176
+ defaultStyling: true,
177
+ styling: true,
178
+ reuseDomDefinition: true,
179
+ useWindowFrame: true,
180
+ interval: true,
181
+ onDomEvent: true,
182
+ canHaveDom: true
183
+ });
175
184
  _defineProperty(TargetData, "targetToEventsMapping", {
176
185
  onClickEvent: ['clickEvents', 'touchStart', 'touchEnd', 'startEvents'],
177
186
  onTouchStart: ['touchStart', 'startEvents'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "targetj",
3
- "version": "1.0.147",
3
+ "version": "1.0.148",
4
4
  "keywords": [
5
5
  "targetjs"
6
6
  ],