targetj 1.0.251 → 1.0.252

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/Bracket.js CHANGED
@@ -24,7 +24,7 @@ var Bracket = /*#__PURE__*/function (_TModel) {
24
24
  _classCallCheck(this, Bracket);
25
25
  _this = _callSuper(this, Bracket, ["BI"]);
26
26
  _this.parent = parent;
27
- _this.currentBrakcetStatus = 2;
27
+ _this.currentBracketStatus = 2;
28
28
  return _this;
29
29
  }
30
30
  _inherits(Bracket, _TModel);
@@ -145,12 +145,12 @@ var Bracket = /*#__PURE__*/function (_TModel) {
145
145
  if (hasEventDirty) {
146
146
  return true;
147
147
  }
148
- if (this.currentBrakcetStatus >= 1 || this.isNowVisible || this.isNowInvisible) {
149
- this.currentBrakcetStatus = Math.max(0, this.currentBrakcetStatus - 1);
148
+ if (this.currentBracketStatus >= 1 || this.isNowVisible || this.isNowInvisible) {
149
+ this.currentBracketStatus = Math.max(0, this.currentBracketStatus - 1);
150
150
  return true;
151
151
  }
152
152
  if (nowVisible) {
153
- this.currentBrakcetStatus = Math.min(2, this.currentBrakcetStatus + 1);
153
+ this.currentBracketStatus = Math.min(2, this.currentBracketStatus + 1);
154
154
  }
155
155
  if (this.getDirtyLayout() === false) {
156
156
  return false;
@@ -140,13 +140,13 @@ var BracketGenerator = /*#__PURE__*/function () {
140
140
  var bracket = targetBracket;
141
141
  bracket.startIndex = Math.min(bracket.startIndex, index);
142
142
  bracket.endIndex = bracket.startIndex + bracket.allChildrenList.length;
143
- bracket.currentBrakcetStatus = 2;
143
+ bracket.currentBracketStatus = 2;
144
144
  bracket.markLayoutDirty('update');
145
145
  bracket = targetBracket.getParent();
146
146
  while (bracket instanceof Bracket) {
147
147
  bracket.startIndex = Math.min(bracket.startIndex, index);
148
148
  bracket.endIndex = Math.max(bracket.endIndex, index + 1);
149
- bracket.currentBrakcetStatus = 2;
149
+ bracket.currentBracketStatus = 2;
150
150
  bracket.markLayoutDirty('update');
151
151
  bracket = bracket.getParent();
152
152
  }
@@ -291,7 +291,7 @@ var BracketGenerator = /*#__PURE__*/function () {
291
291
  value: function markBracketDirty(bracket) {
292
292
  var current = bracket;
293
293
  while (current && current.type === 'BI') {
294
- current.currentBrakcetStatus = 2;
294
+ current.currentBracketStatus = 2;
295
295
  current.markLayoutDirty('update');
296
296
  current = current.parent;
297
297
  }
@@ -407,7 +407,7 @@ var LoadingManager = /*#__PURE__*/function () {
407
407
  var onError = (_tmodel$targets$targe2 = tmodel.targets[targetName]) === null || _tmodel$targets$targe2 === void 0 ? void 0 : _tmodel$targets$targe2.onError;
408
408
  if (onError) {
409
409
  if (typeof onError === 'function') {
410
- tmodel.setTargetMethodName(targetName, 'onSuccess');
410
+ tmodel.setTargetMethodName(targetName, 'onError');
411
411
  onError.call(tmodel, tmodel.val(targetName));
412
412
  } else if (Array.isArray(onError)) {
413
413
  onError.forEach(function (t) {