Rename BaseWidget by BaseDataview
This commit is contained in:
parent
9a4794ee10
commit
cdc56e703c
@ -1,4 +1,4 @@
|
|||||||
var BaseWidget = require('./base');
|
var BaseDataview = require('./base');
|
||||||
|
|
||||||
var TYPE = 'list';
|
var TYPE = 'list';
|
||||||
|
|
||||||
@ -20,13 +20,13 @@ function List(query, options) {
|
|||||||
throw new Error('List expects `columns` array in widget options');
|
throw new Error('List expects `columns` array in widget options');
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseWidget.apply(this);
|
BaseDataview.apply(this);
|
||||||
|
|
||||||
this.query = query;
|
this.query = query;
|
||||||
this.columns = options.columns;
|
this.columns = options.columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
List.prototype = new BaseWidget();
|
List.prototype = new BaseDataview();
|
||||||
List.prototype.constructor = List;
|
List.prototype.constructor = List;
|
||||||
|
|
||||||
module.exports = List;
|
module.exports = List;
|
||||||
|
Loading…
Reference in New Issue
Block a user