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

remove of an item returns this.getitem is not a function #28

Open
bryanrasmussen opened this issue Aug 13, 2014 · 0 comments
Open

remove of an item returns this.getitem is not a function #28

bryanrasmussen opened this issue Aug 13, 2014 · 0 comments

Comments

@bryanrasmussen
Copy link

I want to update the value of an item, I am not finding it possible to do this so I decided to remove it and write it again, in looking at that I got the following error

which returns
TypeError: this.getItem is not a function
...key,fn,scope){var val;key=this.key(key);val=this.getItem(key);this.store.removeI...
I narrowed down and found I just couldn't remove the item.

It is the correct data store and item I referring to.

I can provoke this with something as simple as

var store = new Persist.Store('external_img_store');
store.remove("urls");

however If I do
store.get('urls', function (ok, val) {
var currenturl_list;
if (ok) {
currenturl_list = val.split(",");
console.log(currenturl_list);
}
});

I see all the urls I have stored in there.

Any ideas?

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

No branches or pull requests

1 participant