1 // Generated by CoffeeScript 1.3.3
4 Readings.Config = (function() {
6 function Config(opts) {
10 Config.prototype.key = function(name) {
11 return "config." + name;
14 Config.prototype.get = function(name) {
16 v = localStorage.getItem(this.key(name));
20 return this.opts[name];
23 Config.prototype.save = function(name, value) {
24 return localStorage.setItem(this.key(name), JSON.stringify(value));