dzkcc-mflow 0.0.37 → 0.0.38

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/core/Core.js CHANGED
@@ -33,7 +33,7 @@ class AbstractCore {
33
33
  * ```
34
34
  */
35
35
  getModel(modelClass) {
36
- const className = modelClass.name;
36
+ const className = modelClass;
37
37
  // 如果已存在实例,直接返回
38
38
  if (this.container.has(className)) {
39
39
  return this.container.get(className);
@@ -55,7 +55,7 @@ class AbstractCore {
55
55
  * ```
56
56
  */
57
57
  getManager(managerClass) {
58
- const className = managerClass.name;
58
+ const className = managerClass;
59
59
  // 如果已存在实例,直接返回
60
60
  if (this.container.has(className)) {
61
61
  return this.container.get(className);
@@ -61,16 +61,13 @@ class CcocosUIManager {
61
61
  return this.internalGetTopView();
62
62
  }
63
63
  open(viewClass, args) {
64
- const className = viewClass.name;
65
- return this.internalOpen(className, args);
64
+ return this.internalOpen(viewClass, args);
66
65
  }
67
66
  close(viewClass) {
68
- const className = viewClass.name;
69
- this.internalClose(className);
67
+ this.internalClose(viewClass);
70
68
  }
71
69
  openAndPush(viewClass, group, args) {
72
- const className = viewClass.name;
73
- return this.internalOpenAndPush(className, group, args);
70
+ return this.internalOpenAndPush(viewClass, group, args);
74
71
  }
75
72
  closeAndPop(group, destroy) {
76
73
  this.internalCloseAndPop(group, destroy);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dzkcc-mflow",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "A modular design and process management framework developed for the cocos engine, suitable for decoupling and dependency injection.",
5
5
  "author": "duanzhk",
6
6
  "license": "MIT",