renaming files
This commit is contained in:
parent
8f15578bb4
commit
609ba4ef71
11 changed files with 14 additions and 14 deletions
|
|
@ -1,26 +0,0 @@
|
|||
|
||||
var FakeStorage = function(){
|
||||
this.storage = {};
|
||||
};
|
||||
|
||||
FakeStorage.prototype.setGlobal = function (id, payload) {
|
||||
this.storage[id] = payload;
|
||||
};
|
||||
|
||||
FakeStorage.prototype.getGlobal = function(id) {
|
||||
return this.storage[id];
|
||||
}
|
||||
|
||||
FakeStorage.prototype.set = function (wid, id, payload) {
|
||||
this.storage[wid + '-' + id] = payload;
|
||||
};
|
||||
|
||||
FakeStorage.prototype.get = function(wid, id) {
|
||||
return this.storage[wid + '-' +id];
|
||||
}
|
||||
|
||||
FakeStorage.prototype.clear = function() {
|
||||
delete this['storage'];
|
||||
}
|
||||
|
||||
module.exports = require('soop')(FakeStorage);
|
||||
Loading…
Add table
Add a link
Reference in a new issue