solarnetwork-d3.js
function(key, newValue) {
      var me = this;
      if (arguments.length === 1) {
        return this.map[key];
      }
      if (newValue === null) {
        delete this.map[key];
        if (this.hasOwnProperty(key)) {
          delete this[key];
        }
      } else {
        this.map[key] = newValue;
        if (!this.hasOwnProperty(key)) {
          Object.defineProperty(this, key, {
            enumerable: true,
            configurable: true,
            get: function() {
              return me.map[key];
            },
            set: function(value) {
              me.map[key] = value;
            }
          });
        }
      }
      return this;
    }
function(key, newValue) {
      var me = this;
      if (arguments.length === 1) {
        return this.map[key];
      }
      if (newValue === null) {
        delete this.map[key];
        if (this.hasOwnProperty(key)) {
          delete this[key];
        }
      } else {
        this.map[key] = newValue;
        if (!this.hasOwnProperty(key)) {
          Object.defineProperty(this, key, {
            enumerable: true,
            configurable: true,
            get: function() {
              return me.map[key];
            },
            set: function(value) {
              me.map[key] = value;
            }
          });
        }
      }
      return this;
    }
function ( key , newValue ) { var me = this ; if ( arguments . length === 1 ) { return this . map [ key ] ; } if ( newValue === null ) { delete this . map [ key ] ; if ( this . hasOwnProperty ( key ) ) { delete this [ key ] ; } } else { this . map [ key ] = newValue ; if ( ! this . hasOwnProperty ( key ) ) { Object . defineProperty ( this , key , { enumerable : true , configurable : true , get : function ( ) { return me . map [ key ] ; } , set : function ( value ) { me . map [ key ] = value ; } } ) ; } } return this ; }
Get or set a configuration value.

@param {String} key The key to get or set the value for
@param [newValue] If defined, the new value to set for the given {@code key}.
If {@code null} then the value will be removed.
@returns If called as a getter, the associated value for the given {@code key},
otherwise this object.
@preserve
Get or set a configuration value .