aurelia-plugins-addthis
Version:
An AddThis plugin for Aurelia.
23 lines (18 loc) • 340 B
JavaScript
export let Config = class Config {
constructor() {
this._config = { lang: 'en', pubid: '' };
}
all() {
return this._config;
}
get(key) {
return this._config[key];
}
options(obj) {
Object.assign(this._config, obj);
}
set(key, value) {
this._config[key] = value;
return this._config[key];
}
};