1
0
Fork 0

efis-canvas.nas sanitize string

This commit is contained in:
Henning Stahlke 2020-06-03 17:43:15 +02:00 committed by James Turner
parent ed1deacce8
commit 92fe425e0a

View file

@ -51,8 +51,11 @@ var EFISCanvas = {
_instr_props: {}, _instr_props: {},
}; };
append(EFISCanvas._instances, obj); append(EFISCanvas._instances, obj);
obj.updateCountN = EFIS_root_node.getNode("update/count-"~name, 1); var n = props.Node.makeValidPropName(name);
obj.updateCountN = EFIS_root_node.getNode("update/count-"~n, 1);
obj.updateCountN.setIntValue(0); obj.updateCountN.setIntValue(0);
obj.debugN = EFIS_root_node.getNode("debug/"~n, 1);
obj.debugN.setBoolValue(0);
var settings = obj.defaultcanvas_settings; var settings = obj.defaultcanvas_settings;
settings["name"] = name; settings["name"] = name;
obj._canvas = canvas.new(settings); obj._canvas = canvas.new(settings);