Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Fixed Timeline.setGroups for Array #2529

Merged
merged 1 commit into from
Jan 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions lib/timeline/Timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,11 @@ Timeline.prototype.setGroups = function(groups) {
newDataSet = null;
}
else {
var filter = {
filter : function(group){
return group.visible !== false;
}
var filter = function(group) {
return group.visible !== false;
}
if (groups instanceof DataSet || groups instanceof DataView) {
newDataSet = new DataView(groups,filter);
newDataSet = new DataView(groups,{filter: filter});
}
else {
// turn an array into a dataset
Expand Down