@ives_xxz/framework 1.4.12 → 1.4.13

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.
@@ -311,7 +311,9 @@ class FWLayerOpenManager {
311
311
  ): Promise<Ctr> {
312
312
  try {
313
313
  const res = await this.resourceManager.loadLayerAsync(layerData);
314
- return this.createLayer(layerData, res, data) as Ctr;
314
+ const ctr = this.createLayer(layerData, res, data) as Ctr;
315
+ this.dataManager.removeFromRegistry(layerData.controllerConstructor);
316
+ return ctr;
315
317
  } catch (e) {
316
318
  FWLog.error(`asyncGenerationLayer failed:`, e);
317
319
  this.dataManager.clearFailedLayer(layerData);
@@ -328,7 +330,9 @@ class FWLayerOpenManager {
328
330
  ): Ctr {
329
331
  try {
330
332
  const res = this.resourceManager.loadLayerSync(layerData);
331
- return this.createLayer(layerData, res, data);
333
+ const ctr = this.createLayer(layerData, res, data) as Ctr;
334
+ this.dataManager.removeFromRegistry(layerData.controllerConstructor);
335
+ return ctr;
332
336
  } catch (e) {
333
337
  FWLog.error(`syncGenerationLayer failed:`, e);
334
338
  this.dataManager.clearFailedLayer(layerData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ives_xxz/framework",
3
- "version": "1.4.12",
3
+ "version": "1.4.13",
4
4
  "description": "cocoscreator 2.x mvc framework",
5
5
  "main": "index.js",
6
6
  "keywords": ["123456"],