sugarlabs / sugar-web

Components for Sugar web activities
Apache License 2.0
13 stars 32 forks source link

JSONStore helper to store JSON through localStorage #85

Closed manuq closed 10 years ago

manuq commented 11 years ago

Since I sent this to sugar-devel, I chenged the event neme from "storeReady" to "jsonstoreReady".

I tried to add a test spec, but got requirejs "script error". What I did:

If I do a trivial expect(true).toBe(true), it works. But if I add the import it fails:

define(["sugar-web/activity/jsonstore"], function (jsonstore) {

So I'm not sending the spec now.