@ives_xxz/framework 1.5.16 → 1.5.17

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.
@@ -7,7 +7,7 @@ type PropertyDecorator = (
7
7
  $descriptorOrInitializer?: any
8
8
  ) => void;
9
9
 
10
- const searchChild = function (node: cc.Node, name: string) {
10
+ export const searchChild = function (node: cc.Node, name: string) {
11
11
  let ret = node.getChildByName(name);
12
12
  if (ret) return ret;
13
13
  for (let i = 0; i < node.children.length; i++) {
@@ -289,7 +289,6 @@ export function RegisterEvents(events: FW.RegisterEventArgs[]) {
289
289
  const originalMethod = descriptor.value;
290
290
 
291
291
  descriptor.value = function (...args: any[]) {
292
- // 在初始化时自动注册事件
293
292
  if (this.registerEvent) {
294
293
  this.registerEvent(events);
295
294
  }
@@ -54,11 +54,10 @@ export class FWLayerManager extends FWManager implements FW.LayerManager {
54
54
  /**
55
55
  * 同步打开
56
56
  */
57
- @PerformanceMonitor("openSync")
58
57
  openSync<Ctr extends FW.LayerController = FW.LayerController>(
59
58
  data: FW.LayerOpenArgs
60
59
  ): Ctr {
61
- return this.openManager.openLayerSync(data) as unknown as Ctr;
60
+ return this.openManager.openLayerSync(data) as Ctr;
62
61
  }
63
62
 
64
63
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ives_xxz/framework",
3
- "version": "1.5.16",
3
+ "version": "1.5.17",
4
4
  "description": "cocoscreator 2.x mvc framework",
5
5
  "main": "index.js",
6
6
  "keywords": [