Rename BaseWidget by BaseDataview

This commit is contained in:
Daniel García Aubert 2017-09-14 17:10:51 +02:00
parent 9a4794ee10
commit cdc56e703c

View File

@ -1,4 +1,4 @@
var BaseWidget = require('./base');
var BaseDataview = require('./base');
var TYPE = 'list';
@ -20,13 +20,13 @@ function List(query, options) {
throw new Error('List expects `columns` array in widget options');
}
BaseWidget.apply(this);
BaseDataview.apply(this);
this.query = query;
this.columns = options.columns;
}
List.prototype = new BaseWidget();
List.prototype = new BaseDataview();
List.prototype.constructor = List;
module.exports = List;