Skip to content

Commit

Permalink
Merge pull request #63 from georgigriffiths/master
Browse files Browse the repository at this point in the history
add canon to generate_id
  • Loading branch information
georgigriffiths committed Sep 19, 2018
2 parents d23bbdc + af8532f commit 29b4590
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ node_modules
*~
.DS_Store
coverage.html

.history
2 changes: 1 addition & 1 deletion mem-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function mem_store(options) {
}

// Generate a new id
id = options.generate_id ? options.generate_id() : void 0
id = options.generate_id ? options.generate_id(canon) : void 0

if (undefined !== id) {
return do_save(id, true)
Expand Down

0 comments on commit 29b4590

Please sign in to comment.