alexmng/sticky — Issue #13: Defining adapters causes error...
Author: Tex8503
Created: 2012-03-08 21:27:24+00:00
State: open

I'm working on trying to use sticky for a project and I've got a bit of code I've written to generate dummy data...

You can see all of my code here: http://pastebin.com/sSnTH5PH

Anyway, This bit appears to be the offending piece when I initialize Stickystore...

var store = new StickyStore({
adapters: ['webSQL', 'indexedDB', 'localStorage'],
ready:function(){
console.log("Database loaded");
},
size:200
});

If I remove the adapters option - it runs fine. If I keep the adapters option - I get the following error in Chrome:

Uncaught TypeError: Cannot read property 'index' of undefined

StickyStore.exec/html5/js/sticky-2.8.js:181
StickyStore.set/html5/js/sticky-2.8.js:292
GetMyJSONbuildjson.js:84
(anonymous function)/html5/#:645
f.Callbacks.njquery-1.7.1.min.js:2
f.Callbacks.o.fireWithjquery-1.7.1.min.js:2
e.extend.readyjquery-1.7.1.min.js:2
c.addEventListener.Bjquery-1.7.1.min.js:2
/html5/#:620

Any ideas?