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

Commit f405fe8

Browse files
keksayotamberk
authored andcommitted
fix orientation option (#3405)
1 parent b620f3a commit f405fe8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/timeline/Core.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,9 @@ Core.prototype.setOptions = function (options) {
375375
}
376376
}
377377

378-
this.options.orientation = {item:undefined,axis:undefined};
378+
if (typeof this.options.orientation !== 'object') {
379+
this.options.orientation = {item:undefined,axis:undefined};
380+
}
379381
if ('orientation' in options) {
380382
if (typeof options.orientation === 'string') {
381383
this.options.orientation = {

0 commit comments

Comments
 (0)