From 5d9cc9e33cf17cded3325946868e1b4353a92e05 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 1 Dec 2017 15:45:08 +0100 Subject: [PATCH] add: view.lib.gstore (GlobalStore class for VueJS) --- view/lib/gstore-es6.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 view/lib/gstore-es6.js diff --git a/view/lib/gstore-es6.js b/view/lib/gstore-es6.js new file mode 100644 index 0000000..8f91769 --- /dev/null +++ b/view/lib/gstore-es6.js @@ -0,0 +1,14 @@ +/* classe GlobalStore */ +export class GlobalStore{ + + constructor(){ + + this.data = {}; + + } + + add(field, value){ + this.data[field] = value; + } + +} \ No newline at end of file