17 lines
349 B
JavaScript
Executable File
17 lines
349 B
JavaScript
Executable File
'use strict';
|
|
|
|
import _ from 'underscore';
|
|
|
|
export default {
|
|
setOptions(options) {
|
|
if (!_.isObject(options)) {
|
|
throw new Error('ERROR: Invalid Options argument');
|
|
}
|
|
|
|
if (_.isEmpty(options)) {
|
|
return;
|
|
}
|
|
this._options = _.extend({}, this._options, options);
|
|
}
|
|
}
|