implement removeItem so localForage doesn't complain

pull/1/head
ansuz 7 years ago
parent 98c66ef8f6
commit 23c305f71f

@ -13,7 +13,8 @@ define(['/common/requireconfig.js'], function (RequireConfig) {
var mkFakeStore = function () {
var fakeStorage = {
getItem: function (k) { return fakeStorage[k]; },
setItem: function (k, v) { fakeStorage[k] = v; return v; }
setItem: function (k, v) { fakeStorage[k] = v; return v; },
removeItem: function (k) { delete fakeStorage[k]; }
};
return fakeStorage;
};

Loading…
Cancel
Save