|
@ -271,13 +271,11 @@ Timeline.prototype.setGroups = function(groups) { |
|
|
newDataSet = null; |
|
|
newDataSet = null; |
|
|
} |
|
|
} |
|
|
else { |
|
|
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) { |
|
|
if (groups instanceof DataSet || groups instanceof DataView) { |
|
|
newDataSet = new DataView(groups,filter); |
|
|
|
|
|
|
|
|
newDataSet = new DataView(groups,{filter: filter}); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
// turn an array into a dataset
|
|
|
// turn an array into a dataset
|
|
|