diff options
Diffstat (limited to 'js/service/Settings.js')
-rw-r--r-- | js/service/Settings.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/js/service/Settings.js b/js/service/Settings.js index 09a89f6ed..61e79b25d 100644 --- a/js/service/Settings.js +++ b/js/service/Settings.js @@ -12,20 +12,17 @@ app.service('Settings', function () { this.settings = {}; - this.receive = function (data) { - var key; - for (key in data) { - if (data.hasOwnProperty(key)) { - this.settings[key] = data[key]; - } + this.receive = (data) => { + for (let key in data) { + this.settings[key] = data[key]; } }; - this.get = function (key) { + this.get = (key) => { return this.settings[key]; }; - this.set = function (key, value) { + this.set = (key, value) => { this.settings[key] = value; }; |