Browse Source

fix orientation option (#3405)

revert-3409-performance
Ondřej Exner 7 years ago
committed by Yotam Berkowitz
parent
commit
f405fe86b8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      lib/timeline/Core.js

+ 3
- 1
lib/timeline/Core.js View File

@ -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 = {

Loading…
Cancel
Save