mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 07:06:44 +00:00
lib: add function defaultAttributes
This commit is contained in:
parent
29b9bd4db0
commit
f19a5dd3ed
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue