Browse Source

Bugfix in timeline (#2219)

* Add initial scroller without options
* Add initial scroll without an option
* Add verticalScroll option
* Fix scrollbar positions
* Add docs
* fix example
* remove jquery dependency
* Fix example
* Fix review comments
* Fix verticalScroll and horizontalScroll docs
* Fix bug in timeline option.rtl if otion is undefined
* Remove hack
* Fix breaking of timeline
codeClimate
yotamberk 8 years ago
committed by Alexander Wunschik
parent
commit
1e55ee8640
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      lib/timeline/Timeline.js

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

@ -61,11 +61,6 @@ function Timeline (container, items, groups, options) {
};
this.options = util.deepExtend({}, this.defaultOptions);
// apply options
if (options) {
this.setOptions(options);
}
// Create the DOM, props, and emitter
this._create(container);
@ -109,6 +104,11 @@ function Timeline (container, items, groups, options) {
// current time bar
this.currentTime = new CurrentTime(this.body);
this.components.push(this.currentTime);
// apply options
if (options) {
this.setOptions(options);
}
// item set
this.itemSet = new ItemSet(this.body, this.options);

Loading…
Cancel
Save