mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
21 lines
278 B
JavaScript
21 lines
278 B
JavaScript
import EventTarget from './events';
|
|
|
|
const config = {
|
|
instrument: false
|
|
};
|
|
|
|
EventTarget['mixin'](config);
|
|
|
|
function configure(name, value) {
|
|
if (arguments.length === 2) {
|
|
config[name] = value;
|
|
} else {
|
|
return config[name];
|
|
}
|
|
}
|
|
|
|
export {
|
|
config,
|
|
configure
|
|
};
|