Use default values for constructor's arguments

This commit is contained in:
Daniel García Aubert 2017-09-14 17:57:24 +02:00
parent 1063d81c1b
commit a4ecc18f2f

View File

@ -50,7 +50,7 @@ var TYPE = 'formula';
}
}
*/
function Formula(query, options, queries) {
function Formula(query, options = {}, queries = {}) {
if (!_.isString(options.operation)) {
throw new Error('Formula expects `operation` in widget options');
}