Browse Source

Fixed Timeline.setGroups for Array (#2529)

fix2580
Lewis B 8 years ago
committed by yotamberk
parent
commit
d3d1dc7ecc
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      lib/timeline/Timeline.js

+ 3
- 5
lib/timeline/Timeline.js View File

@ -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

Loading…
Cancel
Save