aurelia-plugins-addthis
Version:
An AddThis plugin for Aurelia.
47 lines (36 loc) • 1.04 kB
JavaScript
;
System.register([], function (_export, _context) {
"use strict";
var Config;
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
return {
setters: [],
execute: function () {
_export('Config', 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;
}());
_export('Config', Config);
}
};
});