|
|
@ -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); |
|
|
|