Browse Source

Fix error when option is not defined

revert-3409-performance
Yotam Berkowitz 8 years ago
parent
commit
2f04345f80
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/timeline/Timeline.js

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

@ -70,7 +70,8 @@ function Timeline (container, items, groups, options) {
} else {
this.options.rtl = options.rtl;
}
this.options.rollingMode = options.rollingMode;
this.options.rollingMode = options && options.rollingMode;
// all components listed here will be repainted automatically
this.components = [];

Loading…
Cancel
Save