|
|
@ -60,7 +60,11 @@ function Timeline (container, items, groups, options) { |
|
|
|
minHeight: null |
|
|
|
}; |
|
|
|
this.options = util.deepExtend({}, this.defaultOptions); |
|
|
|
if (options) { this.options.rtl = options.rtl; } |
|
|
|
|
|
|
|
// apply options
|
|
|
|
if (options) { |
|
|
|
this.setOptions(options); |
|
|
|
} |
|
|
|
|
|
|
|
// Create the DOM, props, and emitter
|
|
|
|
this._create(container); |
|
|
@ -145,11 +149,6 @@ function Timeline (container, items, groups, options) { |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// apply options
|
|
|
|
if (options) { |
|
|
|
this.setOptions(options); |
|
|
|
} |
|
|
|
|
|
|
|
// IMPORTANT: THIS HAPPENS BEFORE SET ITEMS!
|
|
|
|
if (groups) { |
|
|
|
this.setGroups(groups); |
|
|
|