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

Commit

Permalink
fix orientation option (#3405)
Browse files Browse the repository at this point in the history
  • Loading branch information
keksa authored and yotamberk committed Sep 2, 2017
1 parent b620f3a commit f405fe8
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit f405fe8

Please sign in to comment.