feature(store) add

This commit is contained in:
coderaiser 2017-05-16 16:15:22 +03:00
parent fe0210d573
commit ea297fc23e
5 changed files with 65 additions and 37 deletions

View file

@ -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;
};
}