UNPKG

aurelia-plugins-addthis

Version:
34 lines (25 loc) 780 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Config = exports.Config = function () { function Config() { _classCallCheck(this, Config); this._config = { lang: 'en', pubid: '' }; } Config.prototype.all = function all() { return this._config; }; Config.prototype.get = function get(key) { return this._config[key]; }; Config.prototype.options = function options(obj) { Object.assign(this._config, obj); }; Config.prototype.set = function set(key, value) { this._config[key] = value; return this._config[key]; }; return Config; }();