diff --git a/lib/timeline/Timeline.js b/lib/timeline/Timeline.js index 43b7b583..ef47d28f 100644 --- a/lib/timeline/Timeline.js +++ b/lib/timeline/Timeline.js @@ -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);