lib: add function defaultAttributes

This commit is contained in:
Frothy 2024-02-25 11:40:43 -05:00
parent 29b9bd4db0
commit f19a5dd3ed

View file

@ -68,6 +68,8 @@ in
mkSetLuaBinding = binding: action:
mkLuaBinding binding.value action binding.description;
defaultAttributes = attr: self.mapAttrs (name: value: self.mkDefault value) attr;
# For forward compatibility.
literalExpression = super.literalExpression or super.literalExample;
})