mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(store) add
This commit is contained in:
parent
fe0210d573
commit
ea297fc23e
5 changed files with 65 additions and 37 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
const rendy = require('rendy');
|
||||
const Entity = require('./entity');
|
||||
const store = require('../common/store');
|
||||
|
||||
/* КОНСТАНТЫ (общие для клиента и сервера)*/
|
||||
|
||||
|
|
@ -226,13 +227,3 @@ function getSize(size) {
|
|||
return size;
|
||||
}
|
||||
|
||||
function store() {
|
||||
const data = {};
|
||||
return (value) => {
|
||||
if (typeof value !== 'undefined')
|
||||
data.value = value;
|
||||
|
||||
return data.value;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue