Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take prefix into account in getAll-function #25

Merged
merged 1 commit into from
Feb 25, 2016
Merged

Take prefix into account in getAll-function #25

merged 1 commit into from
Feb 25, 2016

Conversation

Jacse
Copy link
Contributor

@Jacse Jacse commented Jan 30, 2016

When using lockr with a prefix, getAll() returns all localStorage-values, including those that do not have the specified prefix. This is a simple fix that works with or without a prefix.

Perhaps it should be considered to add a function that returns all keys/value-pairs or just all keys? Considering most other functions in the library depend on keys, the values by them selves aren't very useful.

tsironis added a commit that referenced this pull request Feb 25, 2016
Take prefix into account in getAll-function
@tsironis tsironis merged commit 0e21574 into tsironis:master Feb 25, 2016
@tsironis
Copy link
Owner

Thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants