Commit 19f0ac8e authored by yann300's avatar yann300

add unpersisted property access

parent 3915113c
...@@ -4,6 +4,7 @@ var CONFIG_FILE = '.remix.config' ...@@ -4,6 +4,7 @@ var CONFIG_FILE = '.remix.config'
function Config (storage) { function Config (storage) {
this.items = {} this.items = {}
this.unpersistedItems = {}
// load on instantiation // load on instantiation
try { try {
...@@ -44,6 +45,14 @@ function Config (storage) { ...@@ -44,6 +45,14 @@ function Config (storage) {
} }
} }
} }
this.getUnpersistedProperty = function (key) {
return this.unpersistedItems[key]
}
this.setUnpersistedProperty = function (key, value) {
this.unpersistedItems[key] = value
}
} }
module.exports = Config module.exports = Config
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment