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

self.keyExtraction is not a function (webkit-sqlite.js) #216

Open
demaniak opened this issue Aug 13, 2015 · 2 comments
Open

self.keyExtraction is not a function (webkit-sqlite.js) #216

demaniak opened this issue Aug 13, 2015 · 2 comments

Comments

@demaniak
Copy link
Contributor

error in sqlite adaptor! TypeError: self.keyExtraction is not a function at Object.Lawnchair.adapter.save (http://localhost:9000/scripts/vendor/lawnchair/webkit-sqlite.js:76:78)

I find myself forced to switch to webkit-sqlite.js because of required support for Android 4.0.x

So I tried making the switch, and hit on the problem above when trying to save.

I tried implementing a keyExtraction function in webkit-sqlite.js, but ofcourse that then is picked up as non-standard API, and the adapter is thrown out.

@MarkMYoung any ideas?

@demaniak
Copy link
Contributor Author

URGH, and of course the issue was simple (sorry, I'm battling some sorta virus at the momemnt, so my head is a bit fuzzy).

insvals[i] = [JSON.stringify(objs[i]), ts, JSON.stringify(self.keyExtraction(objs[i]))];
should be
insvals[i] = [JSON.stringify(objs[i]), ts, JSON.stringify(that.keyExtraction(objs[i]))];

@demaniak
Copy link
Contributor Author

Fixed with this PR

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