@ives_xxz/framework 2.1.39 → 2.1.40
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/Framework.ts +7 -6
- package/FrameworkBase.ts +1 -1
- package/package.json +1 -1
package/Framework.ts
CHANGED
|
@@ -26,10 +26,7 @@ export class Framework implements FW.Framework {
|
|
|
26
26
|
return this.container.get<T>(serviceIdentifier);
|
|
27
27
|
}
|
|
28
28
|
} else if (typeof serviceIdentifier === "function") {
|
|
29
|
-
const className =
|
|
30
|
-
cc.js.getClassName(serviceIdentifier) || serviceIdentifier?.name;
|
|
31
|
-
|
|
32
|
-
if (!className) return undefined;
|
|
29
|
+
const className = serviceIdentifier?.name;
|
|
33
30
|
|
|
34
31
|
if (this.container.isBound(serviceIdentifier)) {
|
|
35
32
|
return this.container.get<T>(serviceIdentifier);
|
|
@@ -217,7 +214,9 @@ export class Framework implements FW.Framework {
|
|
|
217
214
|
(reg) =>
|
|
218
215
|
reg.logic === data.logic &&
|
|
219
216
|
reg.data === data.data &&
|
|
220
|
-
reg.config === data.config
|
|
217
|
+
reg.config === data.config &&
|
|
218
|
+
reg.sender === data.sender &&
|
|
219
|
+
reg.handle === data.handle,
|
|
221
220
|
);
|
|
222
221
|
|
|
223
222
|
if (!exists) {
|
|
@@ -233,7 +232,9 @@ export class Framework implements FW.Framework {
|
|
|
233
232
|
(reg) =>
|
|
234
233
|
reg.logic === data.logic &&
|
|
235
234
|
reg.data === data.data &&
|
|
236
|
-
reg.config === data.config
|
|
235
|
+
reg.config === data.config &&
|
|
236
|
+
reg.sender === data.sender &&
|
|
237
|
+
reg.handle === data.handle,
|
|
237
238
|
);
|
|
238
239
|
|
|
239
240
|
if (index !== -1) {
|
package/FrameworkBase.ts
CHANGED