Browse Source

Fixed a reference to DataSet

v3_develop
jos 10 years ago
parent
commit
1156e2f92e
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      lib/timeline/Graph2d.js
  2. +1
    -1
      lib/timeline/Timeline.js

+ 1
- 1
lib/timeline/Graph2d.js View File

@ -20,7 +20,7 @@ var LineGraph = require('./component/LineGraph');
*/
function Graph2d (container, items, groups, options) {
// if the third element is options, the forth is groups (optionally);
if (!(groups instanceof Array || groups instanceof vis.DataSet) && groups instanceof Object) {
if (!(groups instanceof Array || groups instanceof DataSet) && groups instanceof Object) {
var forthArgument = options;
options = groups;
groups = forthArgument;

+ 1
- 1
lib/timeline/Timeline.js View File

@ -24,7 +24,7 @@ function Timeline (container, items, groups, options) {
}
// if the third element is options, the forth is groups (optionally);
if (!(groups instanceof Array || groups instanceof vis.DataSet) && groups instanceof Object) {
if (!(groups instanceof Array || groups instanceof DataSet) && groups instanceof Object) {
var forthArgument = options;
options = groups;
groups = forthArgument;

Loading…
Cancel
Save