mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +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: |     mkSetLuaBinding = binding: action: | ||||||
|       mkLuaBinding binding.value action binding.description; |       mkLuaBinding binding.value action binding.description; | ||||||
| 
 | 
 | ||||||
|  |     defaultAttributes = attr: self.mapAttrs (name: value: self.mkDefault value) attr; | ||||||
|  | 
 | ||||||
|     # For forward compatibility. |     # For forward compatibility. | ||||||
|     literalExpression = super.literalExpression or super.literalExample; |     literalExpression = super.literalExpression or super.literalExample; | ||||||
|   }) |   }) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Frothy
				Frothy