@chamn/render 0.0.17 → 0.0.19

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.mjs CHANGED
@@ -4609,7 +4609,7 @@ class Km {
4609
4609
  g(this, "win", window);
4610
4610
  g(this, "_onSuccessList", []);
4611
4611
  g(this, "_onErrorList", []);
4612
- this.assets = e, this.loadStatus = "INIT", r != null && r.window && (this.win = r.window);
4612
+ this.assets = JSON.parse(JSON.stringify(e || [])), this.loadStatus = "INIT", r != null && r.window && (this.win = r.window);
4613
4613
  }
4614
4614
  load() {
4615
4615
  const e = this.assets || [], r = [];
@@ -4627,6 +4627,10 @@ class Km {
4627
4627
  return;
4628
4628
  }
4629
4629
  return new Promise((n, o) => {
4630
+ if (e.length === 0) {
4631
+ this._onSuccessList.forEach((a) => a()), n("");
4632
+ return;
4633
+ }
4630
4634
  Rn.ready(r, {
4631
4635
  success: () => {
4632
4636
  this._onSuccessList.forEach((a) => a()), n("");