Skip to content

Commit 52e230e

Browse files
keksaPrimoz Susa
authored andcommitted
fix orientation option (visjs#3405)
1 parent 395e75f commit 52e230e

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)