From f405fe86b8c413c056e3f998cf2b3b093e892683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Exner?= Date: Sat, 2 Sep 2017 12:07:57 +0200 Subject: [PATCH] fix orientation option (#3405) --- lib/timeline/Core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/timeline/Core.js b/lib/timeline/Core.js index 5213190e..272cfdb8 100644 --- a/lib/timeline/Core.js +++ b/lib/timeline/Core.js @@ -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 = {