-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alternate cat def merge function utils.deepmergeCats (#55)
This one is capable of merging duplicate lists together. This allows for defining extensions to existing categories, rather than the only option being to completely replace with a new list `utils.deepmergeCats` is the new merge function, used the same way as `utils.mergeCatDefs` In addition, module options for categoryDefininions have been slightly changed. `categoryDefinitions.replace` still uses `utils.mergeCatDefs` and merge now uses `utils.deepmergeCats` Using `categoryDefinitions.replace` option no longer is what controls if definitions from the package the module was based on are inherited. Instead, an extra option has been added, `categoryDefinitions.existing` to allow you to control the merge strategy used for merging with the existing definitions.
- Loading branch information
Showing
4 changed files
with
138 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters