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
|
||
|
};
|