don't use the store until it's ready to be used
This commit is contained in:
@@ -65,5 +65,11 @@ define(function () {
|
||||
cb(void 0, Object.keys(localStorage));
|
||||
};
|
||||
|
||||
Store.ready = function (f) {
|
||||
if (typeof(f) === 'function') {
|
||||
f(void 0, Store);
|
||||
}
|
||||
};
|
||||
|
||||
return Store;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user