aurelia-plugins-addthis
Version:
An AddThis plugin for Aurelia.
40 lines (31 loc) • 891 B
JavaScript
define(['exports'], function (exports) {
'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;
}();
});