@studiometa/js-toolkit 2.4.5 → 2.4.6
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.
|
@@ -89,7 +89,7 @@ function manageRef(that, name, elements, mode = "add") {
|
|
|
89
89
|
const methods = getEventMethodsByName(that, name);
|
|
90
90
|
methods.forEach((method) => {
|
|
91
91
|
const event = getEventNameByMethod(method, name);
|
|
92
|
-
elements.forEach((element) => element[action](event, that.__refsHandler));
|
|
92
|
+
elements.filter((element) => element).forEach((element) => element[action](event, that.__refsHandler));
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
function manageChild(that, name, instance, mode = "add") {
|
|
@@ -58,7 +58,7 @@ function manageRef(that, name, elements, mode = "add") {
|
|
|
58
58
|
const methods = getEventMethodsByName(that, name);
|
|
59
59
|
methods.forEach((method) => {
|
|
60
60
|
const event = getEventNameByMethod(method, name);
|
|
61
|
-
elements.forEach((element) => element[action](event, that.__refsHandler));
|
|
61
|
+
elements.filter((element) => element).forEach((element) => element[action](event, that.__refsHandler));
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
function manageChild(that, name, instance, mode = "add") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseDecorator, BaseInterface } from '../Base/types.js';
|
|
2
|
-
import type { Base } from '../Base/index.js';
|
|
2
|
+
import type { Base, BaseOptions } from '../Base/index.js';
|
|
3
3
|
export interface WithFreezedOptionsInterface extends BaseInterface {
|
|
4
|
-
readonly $options:
|
|
4
|
+
readonly $options: Readonly<BaseOptions>;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* Freeze the `$options` property to improve performance.
|