We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20db7cd commit 83b98bcCopy full SHA for 83b98bc
sources/ts/ui.ts
@@ -155,7 +155,7 @@ function ui_theme_create(): ui_theme_t {
155
return raw;
156
}
157
158
-let ui_nodes_custom_buttons: map_t<string, (i: i32)=>void>;
+let ui_nodes_custom_buttons: map_t<string, (i: i32)=>void> = map_create();
159
160
function nodes_on_custom_button(node_id: i32, button_name: string) {
161
let f: (i: i32) => void = map_get(ui_nodes_custom_buttons, button_name);
0 commit comments