@zhongguo168a/yxeditor-common 0.0.71 → 0.0.73

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/dist/index.esm.js CHANGED
@@ -1237,7 +1237,7 @@ class MapUtil {
1237
1237
  if (data === undefined || data === null) {
1238
1238
  return dflt;
1239
1239
  }
1240
- return data;
1240
+ return convertutil.anyToBoolean(data);
1241
1241
  }
1242
1242
  /**
1243
1243
  * 转换成{}, 如果原值无效, 返回{}
@@ -4789,6 +4789,7 @@ class AssetLoader extends Dispatcher {
4789
4789
  case "SpriteFrame": {
4790
4790
  this._loadByItem(item, SpriteFrame, (err, asset) => {
4791
4791
  this._loaded++;
4792
+ item.callHandler(null, asset);
4792
4793
  this.validComplete();
4793
4794
  });
4794
4795
  break;
@@ -4796,6 +4797,7 @@ class AssetLoader extends Dispatcher {
4796
4797
  case "ImageAsset": {
4797
4798
  this._loadByItem(item, ImageAsset, (err, asset) => {
4798
4799
  this._loaded++;
4800
+ item.callHandler(null, asset);
4799
4801
  this.validComplete();
4800
4802
  });
4801
4803
  break;