@zhongguo168a/yxeditor-common 0.0.61 → 0.0.62
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 +11 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4685,16 +4685,19 @@ class AssetLoader extends Dispatcher {
|
|
|
4685
4685
|
break;
|
|
4686
4686
|
}
|
|
4687
4687
|
case "Json": {
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
return;
|
|
4691
|
-
}
|
|
4692
|
-
if (err) {
|
|
4693
|
-
return;
|
|
4694
|
-
}
|
|
4688
|
+
let asset = assetx.getAsset(item.uri.name);
|
|
4689
|
+
if (asset) {
|
|
4695
4690
|
this._loaded++;
|
|
4691
|
+
item.callHandler(null, asset);
|
|
4696
4692
|
this.validComplete();
|
|
4697
|
-
}
|
|
4693
|
+
}
|
|
4694
|
+
else {
|
|
4695
|
+
this._loadByItem(item, null, (err, asset) => {
|
|
4696
|
+
this._loaded++;
|
|
4697
|
+
item.callHandler(err, asset);
|
|
4698
|
+
this.validComplete();
|
|
4699
|
+
});
|
|
4700
|
+
}
|
|
4698
4701
|
break;
|
|
4699
4702
|
}
|
|
4700
4703
|
case "Atlas": {
|