diff --git a/src/app/config.coffee b/src/app/config.coffee index 15d014750..0b1c3fd69 100644 --- a/src/app/config.coffee +++ b/src/app/config.coffee @@ -87,6 +87,12 @@ class Config hash = hash[key] hash[keyPath.shift()] = value + get: (keyPathString) -> + @valueAtKeyPath(keyPathString.split(".")) + + set: (keyPathString, value) -> + @setValueAtKeyPath(keyPathString.split("."), value) + observe: (keyPathString, callback) -> keyPath = keyPathString.split('.') value = @valueAtKeyPath(keyPath)