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