Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

fix orientation option #3405

Merged
merged 1 commit into from
Sep 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/timeline/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ Core.prototype.setOptions = function (options) {
}
}

this.options.orientation = {item:undefined,axis:undefined};
if (typeof this.options.orientation !== 'object') {
this.options.orientation = {item:undefined,axis:undefined};
}
if ('orientation' in options) {
if (typeof options.orientation === 'string') {
this.options.orientation = {
Expand Down