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

Commit

Permalink
Fixed Timeline.setGroups for Array (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisjb authored and yotamberk committed Jan 3, 2017
1 parent cb5cfc0 commit d3d1dc7
Showing 1 changed file with 3 additions and 5 deletions.
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

0 comments on commit d3d1dc7

Please sign in to comment.